WIP: [android] Initial implementation of app shortcuts #4982

Draft
n1snt wants to merge 1 commit from n1snt/app-shortcuts into master
2 changed files with 18 additions and 0 deletions

View file

@ -635,6 +635,8 @@
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<meta-data android:name="android.app.shortcuts"
android:resource="@xml/shortcuts" />
</activity-alias>
<activity

View file

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<shortcuts
xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android">
<shortcut
android:shortcutId="search"
android:enabled="true"
android:icon="@mipmap/ic_launcher"
android:shortcutShortLabel="@string/search"
tools:targetApi="n_mr1">
<intent
android:action="android.intent.action.VIEW"
android:targetPackage="app.organicmaps.debug"
android:targetClass="app.organicmaps.search.SearchActivity" />
</shortcut>
</shortcuts>