Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/src/dev/res/xml/shortcuts.xml17
-rw-r--r--app/src/main/res/xml/shortcuts.xml12
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