Skip to content

Commit e65f25e

Browse files
committed
Preference intent fixed to support Android 12+
1 parent be9c1e3 commit e65f25e

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

portable/comp-android/diacomp/src/main/AndroidManifest.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,6 @@
128128
android:exported="false"
129129
android:label="@string/rates_title"
130130
android:parentActivityName=".frontend.activities.ActivityPreferences">
131-
<intent-filter>
132-
<action android:name=".frontend.activities.ActivityRates" />
133-
<category android:name="android.intent.category.DEFAULT" />
134-
</intent-filter>
135131
</activity>
136132
<activity
137133
android:name=".frontend.activities.ActivityEditorRate"

portable/comp-android/diacomp/src/main/res/xml/preferences.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@
4949
android:enabled="false"
5050
android:key="pref-edit-rates"
5151
android:title="@string/preferences_rates_edit">
52-
<intent android:action=".frontend.activities.ActivityRates" />
52+
<intent
53+
android:targetPackage="org.bosik.diacomp.android"
54+
android:targetClass="org.bosik.diacomp.android.frontend.activities.ActivityRates" />
5355
</Preference>
5456
</PreferenceCategory>
5557

0 commit comments

Comments
 (0)