From d89f8b84175f4a1e616bbc1006685afc434e4f30 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 21 Jun 2024 12:52:40 +0200 Subject: [PATCH] Added extra notification settings --- app/src/amazon/AndroidManifest.xml | 7 +++++- app/src/debug/AndroidManifest.xml | 7 +++++- app/src/fdroid/AndroidManifest.xml | 7 +++++- app/src/github/AndroidManifest.xml | 7 +++++- app/src/main/AndroidManifest.xml | 7 +++++- .../eu/faircode/email/FragmentOptions.java | 24 ++++++++++++++----- app/src/play/AndroidManifest.xml | 7 +++++- 7 files changed, 54 insertions(+), 12 deletions(-) diff --git a/app/src/amazon/AndroidManifest.xml b/app/src/amazon/AndroidManifest.xml index 23461fe090..abda0941e0 100644 --- a/app/src/amazon/AndroidManifest.xml +++ b/app/src/amazon/AndroidManifest.xml @@ -229,7 +229,12 @@ android:launchMode="singleTask" android:parentActivityName=".ActivityMain" android:resizeableActivity="true" - android:taskAffinity="${applicationId}.SETUP" /> + android:taskAffinity="${applicationId}.SETUP"> + + + + + + android:taskAffinity="${applicationId}.SETUP"> + + + + + + android:taskAffinity="${applicationId}.SETUP"> + + + + + + android:taskAffinity="${applicationId}.SETUP"> + + + + + + android:taskAffinity="${applicationId}.SETUP"> + + + + + = 0) - pager.setCurrentItem(index); - getActivity().getIntent().removeExtra("tab"); + Intent intent = getActivity().getIntent(); + if (intent != null) { + String tab; + + Set categories = intent.getCategories(); + if (categories != null && categories.contains(Notification.INTENT_CATEGORY_NOTIFICATION_PREFERENCES)) + tab = "notifications"; + else + tab = getActivity().getIntent().getStringExtra("tab"); + if (!TextUtils.isEmpty(tab)) { + int index = TAB_LABELS.indexOf(tab); + if (index >= 0) + pager.setCurrentItem(index); + getActivity().getIntent().removeExtra("tab"); + } } } diff --git a/app/src/play/AndroidManifest.xml b/app/src/play/AndroidManifest.xml index 1aa01d42c8..3a72880f4f 100644 --- a/app/src/play/AndroidManifest.xml +++ b/app/src/play/AndroidManifest.xml @@ -229,7 +229,12 @@ android:launchMode="singleTask" android:parentActivityName=".ActivityMain" android:resizeableActivity="true" - android:taskAffinity="${applicationId}.SETUP" /> + android:taskAffinity="${applicationId}.SETUP"> + + + + +