Skip to content

Commit

Permalink
Fix preference compatibility with Android 14+
Browse files Browse the repository at this point in the history
  • Loading branch information
max-kammerer committed Jul 16, 2024
1 parent 974baf5 commit fcc9cda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
10 changes: 1 addition & 9 deletions orion-viewer/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,7 @@
android:theme="@style/Theme.AppCompat"
android:launchMode="singleTask"
android:icon="@drawable/orion"
android:exported="false">
<intent-filter>
<action android:name="universe.constellation.orion.viewer.KEY_MANAGER"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
android:exported="false">
</activity>

<activity android:name=".OrionHelpActivity"
Expand All @@ -173,10 +169,6 @@
android:theme="@style/Theme.AppCompat"
android:label="Tap Zones"
android:exported="false">
<intent-filter>
<action android:name="universe.constellation.orion.viewer.TAP_ZONES"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>

<activity android:name=".prefs.ActionListActivity" android:screenOrientation="behind"
Expand Down
4 changes: 2 additions & 2 deletions orion-viewer/src/main/res/xml/user_pref_controls.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@
android:summary="@string/pref_tap_zones_desc"
android:title="@string/menu_tap_text"
app:iconSpaceReserved="false">
<intent android:action="universe.constellation.orion.viewer.TAP_ZONES" />
<intent android:targetPackage="universe.constellation.orion.viewer" android:targetClass="universe.constellation.orion.viewer.prefs.OrionTapActivity" />
</PreferenceScreen>

<Preference
android:persistent="false"
android:summary="@string/pref_key_binder_desc"
android:title="@string/menu_key_binder_text"
app:iconSpaceReserved="false">
<intent android:action="universe.constellation.orion.viewer.KEY_MANAGER" />
<intent android:targetPackage="universe.constellation.orion.viewer" android:targetClass="universe.constellation.orion.viewer.prefs.OrionKeyBinderActivity" />
</Preference>

</PreferenceCategory>
Expand Down

0 comments on commit fcc9cda

Please sign in to comment.