From ac6d9f430ef2aee9628411040408427f961e6590 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 10 Sep 2023 11:57:30 +0200 Subject: [PATCH] forward intent when changing the account --- app/src/main/java/app/fedilab/android/BaseMainActivity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/app/fedilab/android/BaseMainActivity.java b/app/src/main/java/app/fedilab/android/BaseMainActivity.java index 486d61b1..182920a2 100644 --- a/app/src/main/java/app/fedilab/android/BaseMainActivity.java +++ b/app/src/main/java/app/fedilab/android/BaseMainActivity.java @@ -752,6 +752,10 @@ public abstract class BaseMainActivity extends BaseActivity implements NetworkSt editor.commit(); Intent mainActivity = new Intent(activity, MainActivity.class); mainActivity.putExtra(Helper.INTENT_ACTION, Helper.OPEN_NOTIFICATION); + Bundle bundle = intent.getExtras(); + if (bundle != null) { + mainActivity.putExtras(bundle); + } activity.startActivity(mainActivity); activity.finish(); } catch (DBException e) {