Only check token for logged in users

This commit is contained in:
Balazs Toldi 2024-01-06 21:42:57 +01:00
parent e7f84b8aed
commit 3195f05e56
No known key found for this signature in database
GPG Key ID: 6C7D440036F99D58

View File

@ -1144,7 +1144,7 @@ public class MainActivity extends BaseActivity implements SortTypeSelectionCallb
mFetchUserInfoSuccess = false;
}
});
if (mAccessToken != null) {
FetchSiteInfo.fetchSiteInfo(mRetrofit.getRetrofit(), mAccessToken, new FetchSiteInfo.FetchSiteInfoListener() {
@Override
public void onFetchSiteInfoSuccess(SiteInfo siteInfo) {
@ -1171,6 +1171,7 @@ public class MainActivity extends BaseActivity implements SortTypeSelectionCallb
});
}
}
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {