mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-23 13:26:15 +03:00
Fix shortcuts in dev builds
This commit is contained in:
parent
0713472943
commit
04642e6b64
2 changed files with 24 additions and 5 deletions
17
app/src/dev/res/xml/shortcuts.xml
Normal file
17
app/src/dev/res/xml/shortcuts.xml
Normal file
|
@ -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>
|
|
@ -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>
|
Loading…
Reference in a new issue