mirror of
https://github.com/gsantner/dandelion
synced 2025-12-12 07:11:11 +01:00
app shortcut for Android N
This commit is contained in:
parent
e0a6c79836
commit
7327c279af
10 changed files with 31 additions and 3 deletions
22
app/src/main/res/xml-v25/shortcuts.xml
Executable file
22
app/src/main/res/xml-v25/shortcuts.xml
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<shortcut
|
||||
android:shortcutId="shortcut_new_post"
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/qc_post_plus"
|
||||
android:shortcutShortLabel="@string/new_post"
|
||||
android:shortcutLongLabel="@string/new_post"
|
||||
android:shortcutDisabledMessage="@string/new_post">
|
||||
<intent
|
||||
android:action="app_shortcut"
|
||||
android:targetPackage="com.github.dfa.diaspora_android"
|
||||
android:targetClass="com.github.dfa.diaspora_android.activity.MainActivity" />
|
||||
<!-- If your shortcut is associated with multiple intents, include them
|
||||
here. The last intent in the list is what the user sees when they
|
||||
launch this shortcut. -->
|
||||
<categories android:name="android.shortcut.conversation" />
|
||||
</shortcut>
|
||||
|
||||
</shortcuts>
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue