Always add the access token to the retrofit holder

This hopefully eliminates any login related issues on Lemmy 0.19
This commit is contained in:
Balazs Toldi 2023-10-24 18:51:32 +02:00
parent 741ec08386
commit 554dfff4ad
No known key found for this signature in database
GPG Key ID: 6C7D440036F99D58

View File

@ -336,9 +336,8 @@ public class MainActivity extends BaseActivity implements SortTypeSelectionCallb
fragmentManager = getSupportFragmentManager();
mAccessToken = mCurrentAccountSharedPreferences.getString(SharedPreferencesUtils.ACCESS_TOKEN, null);
if (mCurrentAccountSharedPreferences.getBoolean(SharedPreferencesUtils.BEARER_TOKEN_AUTH, true)) {
mRetrofit.setAccessToken(mAccessToken);
}
mRetrofit.setAccessToken(mAccessToken);
mAccountName = mCurrentAccountSharedPreferences.getString(SharedPreferencesUtils.ACCOUNT_NAME, null);
mAccountQualifiedName = mCurrentAccountSharedPreferences.getString(SharedPreferencesUtils.ACCOUNT_QUALIFIED_NAME, null);