Skip to content

Commit

Permalink
Fix hide icon in launcher option and switch application preference ac…
Browse files Browse the repository at this point in the history
…tivity
  • Loading branch information
WSTxda committed Aug 13, 2024
1 parent 29833fb commit d450aeb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions play-services-core/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -360,35 +360,32 @@
<!-- microG Settings activity -->
<activity
android:name="org.microg.gms.ui.MainSettingsActivity"
android:icon="@mipmap/ic_launcher"
android:enabled="false"
android:process=":ui"
android:roundIcon="@mipmap/ic_launcher_round"
android:taskAffinity="org.microg.gms.settings">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.APPLICATION_PREFERENCES" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<!-- Allow microG Settings from opening by other applications -->
<activity-alias
android:name="org.microg.gms.ui.SettingsActivity"
android:icon="@mipmap/ic_launcher"
android:label="@string/gms_settings_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:process=":ui"
android:targetActivity="org.microg.gms.ui.MainSettingsActivity"
android:taskAffinity="org.microg.gms.settings">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.APPLICATION_PREFERENCES" />
</intent-filter>
</activity-alias>

<activity
android:name="org.microg.gms.ui.SettingsDashboardActivity"
android:icon="@mipmap/ic_launcher"
android:label="Legacy microG Settings"
android:label="@string/gms_settings_name"
android:process=":ui"
android:roundIcon="@mipmap/ic_launcher_round"
android:taskAffinity="org.microg.gms.settings" />
Expand All @@ -397,7 +394,7 @@
<activity-alias
android:name="org.microg.gms.ui.SettingsActivityLink"
android:icon="@mipmap/ic_launcher"
android:label="@string/gms_settings_name"
android:label="@string/gms_app_name"
android:process=":ui"
android:targetActivity="org.microg.gms.ui.MainSettingsActivity"
android:taskAffinity="org.microg.gms.settings">
Expand Down
2 changes: 1 addition & 1 deletion play-services-core/src/main/res/xml/preferences_start.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
android:title="@string/service_name_mcs" />

<SwitchPreferenceCompat
android:defaultValue="false"
android:defaultValue="true"
android:icon="@drawable/ic_hide_launcher_icon"
android:key="pref_hide_launcher_icon"
android:title="@string/pref_hide_launcher_icon" />
Expand Down

0 comments on commit d450aeb

Please sign in to comment.