Skip to content

Commit

Permalink
Re-enable app shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
apozas committed Oct 28, 2020
1 parent bf6fc32 commit e2fad33
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 16 deletions.
4 changes: 2 additions & 2 deletions android_app/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<!-- <meta-data android:name="android.app.shortcuts"-->
<!-- android:resource="@xml/shortcuts" />-->
<meta-data android:name="android.app.shortcuts"
android:resource="@xml/shortcuts" />
</activity>
<activity
android:name=".NewContactActivity"
Expand Down
5 changes: 0 additions & 5 deletions android_app/app/src/main/res/drawable/ic_contact_shortcut.xml

This file was deleted.

5 changes: 0 additions & 5 deletions android_app/app/src/main/res/drawable/ic_event_shortcut.xml

This file was deleted.

6 changes: 2 additions & 4 deletions android_app/app/src/main/res/xml/shortcuts.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<shortcut
android:shortcutId="new_contact"
android:enabled="true"
android:icon="@drawable/ic_contact_shortcut"
android:icon="@drawable/ic_contact"
android:shortcutShortLabel="@string/new_contact"
android:shortcutLongLabel="@string/new_contact">
<intent
Expand All @@ -15,14 +15,12 @@
<shortcut
android:shortcutId="new_event"
android:enabled="true"
android:icon="@drawable/ic_event_shortcut"
android:icon="@drawable/ic_event"
android:shortcutShortLabel="@string/new_event"
android:shortcutLongLabel="@string/new_event">
<intent
android:action="android.intent.action.VIEW"
android:targetPackage="com.apozas.contactdiary"
android:targetClass="com.apozas.contactdiary.NewEventActivity" />
</shortcut>


</shortcuts>

0 comments on commit e2fad33

Please sign in to comment.