diff --git a/app/src/main/java/rocks/tbog/tblauncher/Behaviour.java b/app/src/main/java/rocks/tbog/tblauncher/Behaviour.java index 4e7e940b..c9691db1 100644 --- a/app/src/main/java/rocks/tbog/tblauncher/Behaviour.java +++ b/app/src/main/java/rocks/tbog/tblauncher/Behaviour.java @@ -1556,6 +1556,10 @@ public void onNewIntent() { ShortcutUtil.addShortcut(mTBLauncherActivity, intent); return; } + if (Intent.ACTION_ASSIST.equals(action)) { + executeButtonAction("button-assist"); + return; + } } executeButtonAction("button-home"); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index fd17931d..917d0012 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -387,6 +387,7 @@ Letter icons Launcher button Home button + Opened as assist app Contrast Brightness Hue diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml index 3994f733..e1216f97 100644 --- a/app/src/main/res/xml/preferences.xml +++ b/app/src/main/res/xml/preferences.xml @@ -866,6 +866,13 @@ android:key="button-home" android:title="@string/button_home" /> + +