Link resolver to change API base url.

This fixes the issue when opening a link while the app is fully closed
This commit is contained in:
Balazs Toldi 2023-08-14 08:09:51 +02:00
parent 81c190a9c0
commit d244e0ed42
No known key found for this signature in database
GPG Key ID: 6C7D440036F99D58

View File

@ -91,6 +91,8 @@ 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);
Uri uri = getIntent().getData();
if (uri == null) {