mirror of
https://github.com/Docile-Alligator/Infinity-For-Reddit.git
synced 2026-02-22 20:45:54 +00:00
Fix switching account issue in ViewPostDetailActivity and InboxActivity when a user clicks the notification that belongs to another account.
This commit is contained in:
@ -223,6 +223,7 @@ public class InboxActivity extends BaseActivity implements ActivityToolbarInterf
|
||||
mNewAccountName = null;
|
||||
if (newAccount != null) {
|
||||
accessToken = newAccount.getAccessToken();
|
||||
accountName = newAccount.getAccountName();
|
||||
}
|
||||
|
||||
bindView(savedInstanceState);
|
||||
|
||||
@ -345,6 +345,10 @@ public class ViewPostDetailActivity extends BaseActivity implements SortTypeSele
|
||||
Toast.makeText(this, R.string.account_switched, Toast.LENGTH_SHORT).show();
|
||||
|
||||
mNewAccountName = null;
|
||||
if (newAccount != null) {
|
||||
accessToken = newAccount.getAccessToken();
|
||||
accountName = newAccount.getAccountName();
|
||||
}
|
||||
|
||||
bindView(savedInstanceState);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user