summaryrefslogtreecommitdiff
path: root/org.fox.ttrss/src/main/res/xml
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-21 10:07:27 +0300
committerAndrew Dolgov <[email protected]>2018-12-21 10:07:27 +0300
commitd5346abf9213af274066db0f0cc49cf095020595 (patch)
treee9d610d5b596ef66a748e7166e0a3f49a5507b42 /org.fox.ttrss/src/main/res/xml
parenta759caa2e58d57be07d9e7411a4dd8d16d459549 (diff)
add app launcher shortcuts, with associated icons
Diffstat (limited to 'org.fox.ttrss/src/main/res/xml')
-rw-r--r--org.fox.ttrss/src/main/res/xml/shortcuts.xml43
1 files changed, 43 insertions, 0 deletions
diff --git a/org.fox.ttrss/src/main/res/xml/shortcuts.xml b/org.fox.ttrss/src/main/res/xml/shortcuts.xml
new file mode 100644
index 00000000..3328b165
--- /dev/null
+++ b/org.fox.ttrss/src/main/res/xml/shortcuts.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
+ <shortcut
+ android:shortcutId="SHORTCUT:OPEN_MARKED"
+ android:enabled="true"
+ android:icon="@drawable/ic_shortcut_star"
+ android:shortcutShortLabel="@string/feed_starred_articles">
+ <intent
+ android:action="android.intent.action.VIEW"
+ android:targetPackage="org.fox.ttrss"
+ android:targetClass="org.fox.ttrss.MasterActivity">
+ <extra android:name="shortcut_mode" android:value="true"/>
+ <extra android:name="feed_id" android:value="-1"/>
+ </intent>
+ </shortcut>
+ <shortcut
+ android:shortcutId="SHORTCUT:OPEN_FRESH"
+ android:enabled="true"
+ android:icon="@drawable/ic_shortcut_coffee"
+ android:shortcutShortLabel="@string/fresh_articles">
+ <intent
+ android:action="android.intent.action.VIEW"
+ android:targetPackage="org.fox.ttrss"
+ android:targetClass="org.fox.ttrss.MasterActivity">
+ <extra android:name="shortcut_mode" android:value="true"/>
+ <extra android:name="feed_id" android:value="-3"/>
+ </intent>
+ </shortcut>
+ <shortcut
+ android:shortcutId="SHORTCUT:OPEN_ALL_ARTICLES"
+ android:enabled="true"
+ android:icon="@drawable/ic_shortcut_folder_open"
+ android:shortcutShortLabel="@string/feed_all_articles">
+ <intent
+ android:action="android.intent.action.VIEW"
+ android:targetPackage="org.fox.ttrss"
+ android:targetClass="org.fox.ttrss.MasterActivity">
+ <extra android:name="shortcut_mode" android:value="true"/>
+ <extra android:name="feed_id" android:value="-4"/>
+ </intent>
+ </shortcut>
+
+</shortcuts> \ No newline at end of file