only set last account id if creating new activity
This commit is contained in:
parent
357104efa9
commit
2858aeb55e
|
@ -40,7 +40,6 @@ public class ExternalShareActivity extends FragmentStackActivity{
|
|||
openComposeFragment(sessions.get(0).getID());
|
||||
}else{
|
||||
new AccountSwitcherSheet(this, null, true, isMastodonURL, (accountId, open) -> {
|
||||
AccountSessionManager.getInstance().setLastActiveAccountID(accountId);
|
||||
if (open) {
|
||||
UiUtils.lookupURL(this, accountId, text, false, (clazz, args) -> {
|
||||
if (clazz == null) {
|
||||
|
|
|
@ -40,6 +40,7 @@ public class MainActivity extends FragmentStackActivity{
|
|||
Bundle args=new Bundle();
|
||||
Intent intent=getIntent();
|
||||
if(intent.hasExtra("fromExternalShare")) {
|
||||
AccountSessionManager.getInstance().setLastActiveAccountID(intent.getStringExtra("account"));
|
||||
showFragmentForExternalShare(intent.getExtras());
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue