diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-05-05 18:29:53 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-05-05 18:29:53 +0300 |
commit | 04642e6b6484ce840b609d2bc8f1b64a9be3f6c5 (patch) | |
tree | 7f7fbad396f819d0bc65b293ae39f242a381be18 /app | |
parent | 0713472943d03055828987d2c1c3e8ad5939e461 (diff) |
Fix shortcuts in dev builds
Diffstat (limited to 'app')
-rw-r--r-- | app/src/dev/res/xml/shortcuts.xml | 17 | ||||
-rw-r--r-- | app/src/main/res/xml/shortcuts.xml | 12 |
2 files changed, 24 insertions, 5 deletions
diff --git a/app/src/dev/res/xml/shortcuts.xml b/app/src/dev/res/xml/shortcuts.xml new file mode 100644 index 00000000..fcecd23d --- /dev/null +++ b/app/src/dev/res/xml/shortcuts.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<shortcuts xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools"> + <shortcut + android:enabled="true" + android:icon="@drawable/ic_add_blue_24dp" + android:shortcutId="it.niedermann.owncloud.notes" + android:shortcutLongLabel="@string/shortcut_create_long" + android:shortcutShortLabel="@string/action_create" + tools:targetApi="n_mr1"> + <intent + android:action="android.intent.action.CREATE_DOCUMENT" + android:targetClass="it.niedermann.owncloud.notes.android.activity.EditNoteActivity" + android:targetPackage="it.niedermann.owncloud.notes.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 5c8a4f81..2a04f9d5 100644 --- a/app/src/main/res/xml/shortcuts.xml +++ b/app/src/main/res/xml/shortcuts.xml @@ -1,15 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<shortcuts xmlns:android="http://schemas.android.com/apk/res/android"> +<shortcuts xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools"> <shortcut - android:shortcutId="it.niedermann.owncloud.notes" android:enabled="true" android:icon="@drawable/ic_add_blue_24dp" + android:shortcutId="it.niedermann.owncloud.notes" + android:shortcutLongLabel="@string/shortcut_create_long" android:shortcutShortLabel="@string/action_create" - android:shortcutLongLabel="@string/shortcut_create_long"> + tools:targetApi="n_mr1"> <intent android:action="android.intent.action.CREATE_DOCUMENT" - android:targetPackage="it.niedermann.owncloud.notes" - android:targetClass="it.niedermann.owncloud.notes.android.activity.EditNoteActivity" /> + android:targetClass="it.niedermann.owncloud.notes.android.activity.EditNoteActivity" + android:targetPackage="it.niedermann.owncloud.notes" /> <categories android:name="android.shortcut.conversation" /> </shortcut> </shortcuts>
\ No newline at end of file |