app_shortcuts.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
  3. <shortcut
  4. android:enabled="true"
  5. android:icon="@mipmap/ic_shortcut_compose"
  6. android:shortcutDisabledMessage="@string/title_compose_message"
  7. android:shortcutId="compose"
  8. android:shortcutLongLabel="@string/title_compose_message"
  9. android:shortcutShortLabel="@string/title_compose_message">
  10. <intent
  11. android:action="android.intent.action.VIEW"
  12. android:targetClass="ch.threema.app.activities.RecipientListBaseActivity"
  13. android:targetPackage="ch.threema.app"/>
  14. <categories android:name="android.shortcut.conversation"/>
  15. </shortcut>
  16. <shortcut
  17. android:enabled="true"
  18. android:icon="@mipmap/ic_shortcut_qr"
  19. android:shortcutDisabledMessage="@string/qr_code"
  20. android:shortcutId="qrcode"
  21. android:shortcutLongLabel="@string/qr_code"
  22. android:shortcutShortLabel="@string/qr_code">
  23. <intent
  24. android:action="android.intent.action.VIEW"
  25. android:targetClass="ch.threema.app.activities.QRCodeZoomActivity"
  26. android:targetPackage="ch.threema.app"/>
  27. <categories android:name="android.shortcut.conversation"/>
  28. </shortcut>
  29. <share-target android:targetClass="ch.threema.app.activities.RecipientListActivity">
  30. <data android:mimeType="*/*"/>
  31. <category android:name="ch.threema.app.category.DYNAMIC_SHORTCUT_SHARE_TARGET" />
  32. </share-target>
  33. </shortcuts>