Fix anonymous link resolving

This commit is contained in:
Balazs Toldi 2023-08-15 07:55:07 +02:00
parent 587ebbb309
commit bbe696a37b
No known key found for this signature in database
GPG Key ID: 6C7D440036F99D58

View File

@ -91,8 +91,10 @@ public class LinkResolverActivity extends AppCompatActivity {
((Infinity) getApplication()).getAppComponent().inject(this);
mAccessToken = mCurrentAccountSharedPreferences.getString(SharedPreferencesUtils.ACCESS_TOKEN, null);
String instance = mCurrentAccountSharedPreferences.getString(SharedPreferencesUtils.ACCOUNT_INSTANCE, null);
mRetrofit.setBaseURL(instance);
if (mAccessToken != null) {
String instance = mCurrentAccountSharedPreferences.getString(SharedPreferencesUtils.ACCOUNT_INSTANCE, null);
mRetrofit.setBaseURL(instance);
}
Uri uri = getIntent().getData();
if (uri == null) {