diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-04-08 21:34:37 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-04-08 21:34:37 +0300 |
commit | 54d8de812492ecd7d1cfb28d93748060c09d63db (patch) | |
tree | 7483f3037362b8b2243ccff2f0d2f5fb24c7556e /app/src | |
parent | 04e0345b97f46047b0d117b81a986b0a07c0539c (diff) |
#358 Create PickStackActivity
Fix shortcuts
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app/src')
-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> |