diff options
-rw-r--r-- | app/src/dev/res/xml/shortcuts.xml | 15 | ||||
-rw-r--r-- | app/src/main/res/xml/shortcuts.xml | 11 | ||||
-rw-r--r-- | app/src/play/res/xml/shortcuts.xml | 15 |
3 files changed, 35 insertions, 6 deletions
diff --git a/app/src/dev/res/xml/shortcuts.xml b/app/src/dev/res/xml/shortcuts.xml new file mode 100644 index 000000000..e5826b086 --- /dev/null +++ b/app/src/dev/res/xml/shortcuts.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<shortcuts xmlns:android="http://schemas.android.com/apk/res/android"> + <shortcut + android:enabled="true" + android:icon="@drawable/ic_add_grey_24dp" + android:shortcutId="it.niedermann.nextcloud.deck" + android:shortcutLongLabel="@string/add_card" + android:shortcutShortLabel="@string/simple_add"> + <intent + android:action="android.intent.action.VIEW" + android:targetClass="it.niedermann.nextcloud.deck.ui.pickstack.PickStackActivity" + android:targetPackage="it.niedermann.nextcloud.deck.dev" /> + <categories android:name="android.shortcut.conversation" /> + </shortcut> +</shortcuts>
\ No newline at end of file diff --git a/app/src/main/res/xml/shortcuts.xml b/app/src/main/res/xml/shortcuts.xml index c37b1d3cd..045f11961 100644 --- a/app/src/main/res/xml/shortcuts.xml +++ b/app/src/main/res/xml/shortcuts.xml @@ -1,16 +1,15 @@ <?xml version="1.0" encoding="utf-8"?> <shortcuts xmlns:android="http://schemas.android.com/apk/res/android"> <shortcut - android:shortcutId="it.niedermann.nextcloud.deck" android:enabled="true" android:icon="@drawable/ic_add_grey_24dp" - android:shortcutShortLabel="@string/simple_add" - android:shortcutLongLabel="@string/add_card"> + android:shortcutId="it.niedermann.nextcloud.deck" + android:shortcutLongLabel="@string/add_card" + android:shortcutShortLabel="@string/simple_add"> <intent android:action="android.intent.action.VIEW" - android:targetPackage="it.niedermann.nextcloud.deck" - android:targetClass="it.niedermann.nextcloud.deck.ui.pickstack.PickStackActivity"> - </intent> + android:targetClass="it.niedermann.nextcloud.deck.ui.pickstack.PickStackActivity" + android:targetPackage="it.niedermann.nextcloud.deck" /> <categories android:name="android.shortcut.conversation" /> </shortcut> </shortcuts>
\ No newline at end of file diff --git a/app/src/play/res/xml/shortcuts.xml b/app/src/play/res/xml/shortcuts.xml new file mode 100644 index 000000000..c4a30c282 --- /dev/null +++ b/app/src/play/res/xml/shortcuts.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<shortcuts xmlns:android="http://schemas.android.com/apk/res/android"> + <shortcut + android:enabled="true" + android:icon="@drawable/ic_add_grey_24dp" + android:shortcutId="it.niedermann.nextcloud.deck" + android:shortcutLongLabel="@string/add_card" + android:shortcutShortLabel="@string/simple_add"> + <intent + android:action="android.intent.action.VIEW" + android:targetClass="it.niedermann.nextcloud.deck.ui.pickstack.PickStackActivity" + android:targetPackage="it.niedermann.nextcloud.deck.play" /> + <categories android:name="android.shortcut.conversation" /> + </shortcut> +</shortcuts> |