From 325a6f7d660d66cdafa2238cd227ae698aab0cca Mon Sep 17 00:00:00 2001 From: agnostic-apollo Date: Tue, 6 Apr 2021 13:27:43 +0500 Subject: [PATCH] Fix SettingsActivity shortcut not showing on android 7 and fixed shortcut actions and categories --- app/src/main/AndroidManifest.xml | 1 + app/src/main/res/xml/shortcuts.xml | 14 +++++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 888d2694..cef9943d 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -98,6 +98,7 @@ diff --git a/app/src/main/res/xml/shortcuts.xml b/app/src/main/res/xml/shortcuts.xml index 61683ca5..dcd8d341 100644 --- a/app/src/main/res/xml/shortcuts.xml +++ b/app/src/main/res/xml/shortcuts.xml @@ -9,6 +9,7 @@ need to be manually patched since dot (.) prefix does not work to automatically prefix the package name. --> + + android:targetClass="com.termux.app.TermuxActivity" + android:name="android.shortcut.conversation"/> - + android:targetClass="com.termux.app.TermuxActivity" + android:name="android.shortcut.conversation"> + @@ -42,9 +45,10 @@ android:shortcutShortLabel="@string/action_open_settings" tools:targetApi="n_mr1"> + android:targetClass="com.termux.app.activities.SettingsActivity" + android:name="android.shortcut.conversation"/>