Updated comments and method headers to clarify that the block status being checked within AuthenticatedActivity refers to the Wikimedia Commons block status of the user

This commit is contained in:
Sean Nemann 2018-06-11 13:07:54 -04:00
parent f9eed2027c
commit 22a5178e04
5 changed files with 15 additions and 15 deletions

View file

@ -54,12 +54,12 @@ public abstract class AuthenticatedActivity extends NavigationBaseActivity {
protected abstract void onAuthFailure();
/**
* Makes API call to check if user is blocked. If the user is blocked, a snackbar
* Makes API call to check if user is blocked from Commons. If the user is blocked, a snackbar
* is created to notify the user
*/
protected void showBlockStatus()
{
Observable.fromCallable(() -> mediaWikiApi.isUserBlocked())
Observable.fromCallable(() -> mediaWikiApi.isUserBlockedFromCommons())
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.filter(result -> result)