From 2809ca74972ecdf9978b69f46b605e0117bb01ab Mon Sep 17 00:00:00 2001 From: Konrad Kollnig <5175206+kasnder@users.noreply.github.com> Date: Wed, 5 Aug 2026 09:23:50 +0200 Subject: [PATCH] Show the notification permission prompt on every tab MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The prompt row sits inside llApps, which is hidden whenever the Timeline or VPN tab is selected — and ActivityMain deliberately lands users on Timeline, both on first run and on return. A user who has not granted notification permissions therefore never sees the prompt unless they happen to open the Apps tab. Move it out of llApps, directly below the app bar, and let onCreate and onResume drive its visibility as they already do. The XML default goes from visible to gone to match: onCreate hides it unconditionally anyway, and a row this prominent should not flash before that runs. Co-Authored-By: Claude Opus 5 --- app/src/main/res/layout/main.xml | 33 +++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/app/src/main/res/layout/main.xml b/app/src/main/res/layout/main.xml index 19656fa9c..0f5687fce 100644 --- a/app/src/main/res/layout/main.xml +++ b/app/src/main/res/layout/main.xml @@ -24,6 +24,26 @@ app:titleTextColor="@android:color/white" /> + + + - -