Skip to content

Commit

Permalink
fix: Separate shortcut package names for debug and main
Browse files Browse the repository at this point in the history
  • Loading branch information
cyb3rko committed Jan 14, 2024
1 parent 43fd431 commit 0bc643f
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 3 deletions.
37 changes: 37 additions & 0 deletions app/src/debug/res/xml/shortcuts.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<shortcuts
xmlns:android="http://schemas.android.com/apk/res/android">
<shortcut
android:enabled="true"
android:icon="@drawable/ic_shortcut_min"
android:shortcutId="dim_min"
android:shortcutLongLabel="@string/shortcut_min_short"
android:shortcutShortLabel="@string/shortcut_min_long">
<intent
android:action="DIMMER_MIN"
android:targetClass="com.cyb3rko.flashdim.activities.MainActivity"
android:targetPackage="com.cyb3rko.flashdim.dev" />
</shortcut>
<shortcut
android:enabled="true"
android:icon="@drawable/ic_shortcut_half"
android:shortcutId="dim_half"
android:shortcutLongLabel="@string/shortcut_half_long"
android:shortcutShortLabel="@string/shortcut_half_short">
<intent
android:action="DIMMER_HALF"
android:targetClass="com.cyb3rko.flashdim.activities.MainActivity"
android:targetPackage="com.cyb3rko.flashdim.dev" />
</shortcut>
<shortcut
android:enabled="true"
android:icon="@drawable/ic_shortcut_max"
android:shortcutId="dim_max"
android:shortcutLongLabel="@string/shortcut_max_long"
android:shortcutShortLabel="@string/shortcut_max_short">
<intent
android:action="DIMMER_MAX"
android:targetClass="com.cyb3rko.flashdim.activities.MainActivity"
android:targetPackage="com.cyb3rko.flashdim.dev" />
</shortcut>
</shortcuts>
6 changes: 3 additions & 3 deletions app/src/main/res/xml/shortcuts.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<intent
android:action="DIMMER_MIN"
android:targetClass="com.cyb3rko.flashdim.activities.MainActivity"
android:targetPackage="com.cyb3rko.flashdim.dev" />
android:targetPackage="com.cyb3rko.flashdim" />
</shortcut>
<shortcut
android:enabled="true"
Expand All @@ -21,7 +21,7 @@
<intent
android:action="DIMMER_HALF"
android:targetClass="com.cyb3rko.flashdim.activities.MainActivity"
android:targetPackage="com.cyb3rko.flashdim.dev" />
android:targetPackage="com.cyb3rko.flashdim" />
</shortcut>
<shortcut
android:enabled="true"
Expand All @@ -32,6 +32,6 @@
<intent
android:action="DIMMER_MAX"
android:targetClass="com.cyb3rko.flashdim.activities.MainActivity"
android:targetPackage="com.cyb3rko.flashdim.dev" />
android:targetPackage="com.cyb3rko.flashdim" />
</shortcut>
</shortcuts>

0 comments on commit 0bc643f

Please sign in to comment.