diff --git a/play-services-core/src/main/java/org/microg/gms/ui/SettingsFragment.java b/play-services-core/src/main/java/org/microg/gms/ui/SettingsFragment.java index ca8a1bd7..c77e5223 100755 --- a/play-services-core/src/main/java/org/microg/gms/ui/SettingsFragment.java +++ b/play-services-core/src/main/java/org/microg/gms/ui/SettingsFragment.java @@ -25,7 +25,7 @@ public class SettingsFragment extends ResourceSettingsFragment public static final String PREF_SNET = "pref_snet"; public static final String PREF_UNIFIEDNLP = "pref_unifiednlp"; public static final String PREF_CHECKIN = "pref_checkin"; - public static final String PREF_CAST_ENABLED = "pref_cast_enabled"; + public static final String PREF_CAST_DOUBLE_FIX_ENABLED = "pref_cast_double_fix_enabled"; public SettingsFragment() { @@ -53,11 +53,11 @@ public class SettingsFragment extends ResourceSettingsFragment NavHostFragment.findNavController(SettingsFragment.this).navigate(R.id.openAbout); return true; }); - findPreference(PREF_CAST_ENABLED).setOnPreferenceChangeListener((preference, newValue) -> { + findPreference(PREF_CAST_DOUBLE_FIX_ENABLED).setOnPreferenceChangeListener((preference, newValue) -> { boolean isEnabled = (boolean) newValue; getContext().getPackageManager().setComponentEnabledSetting( new ComponentName(getContext().getApplicationContext(), CastMediaRouteProviderService.class), - isEnabled ? PackageManager.COMPONENT_ENABLED_STATE_ENABLED : PackageManager.COMPONENT_ENABLED_STATE_DISABLED, + isEnabled ? PackageManager.COMPONENT_ENABLED_STATE_DISABLED : PackageManager.COMPONENT_ENABLED_STATE_ENABLED, PackageManager.DONT_KILL_APP); return true; }); diff --git a/play-services-core/src/main/res/values/strings.xml b/play-services-core/src/main/res/values/strings.xml index 4db49d56..341364a3 100755 --- a/play-services-core/src/main/res/values/strings.xml +++ b/play-services-core/src/main/res/values/strings.xml @@ -106,7 +106,7 @@ This can take a couple of minutes." Ask before registering a new app to receive push notifications About Vanced microG - Cast service + Cast duplication fix Registers your device to Google services and creates a unique device identifier. Vanced microG strips identifying bits other than your Google account name from registration data. Status @@ -136,5 +136,6 @@ This can take a couple of minutes." official server third-party server self-signed certificate + Enable this if you see duplicates in your casting menu diff --git a/play-services-core/src/main/res/xml/preferences_start.xml b/play-services-core/src/main/res/xml/preferences_start.xml index 691022b0..ee780e76 100755 --- a/play-services-core/src/main/res/xml/preferences_start.xml +++ b/play-services-core/src/main/res/xml/preferences_start.xml @@ -43,10 +43,11 @@ android:targetPackage="com.mgoogle.android.gms" /> + android:summary="@string/pref_cast_double_fix_summary" + android:defaultValue="false"/>