mirror of
https://github.com/YTVanced/VancedMicroG
synced 2024-11-24 04:05:13 +00:00
Update strings to reflect that this is a fix, and invert the toggle.
This commit is contained in:
parent
2e675ffdde
commit
bc526bf548
3 changed files with 9 additions and 7 deletions
|
@ -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;
|
||||
});
|
||||
|
|
|
@ -106,7 +106,7 @@ This can take a couple of minutes."</string>
|
|||
<string name="pref_gcm_confirm_new_apps_summary">Ask before registering a new app to receive push notifications</string>
|
||||
|
||||
<string name="pref_about_title">About Vanced microG</string>
|
||||
<string name="pref_cast_service">Cast service</string>
|
||||
<string name="pref_cast_double_fix">Cast duplication fix</string>
|
||||
|
||||
<string name="pref_checkin_enable_summary">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.</string>
|
||||
<string name="pref_info_status">Status</string>
|
||||
|
@ -136,5 +136,6 @@ This can take a couple of minutes."</string>
|
|||
<string name="pref_snet_status_official_info">official server</string>
|
||||
<string name="pref_snet_status_third_party_info">third-party server</string>
|
||||
<string name="pref_snet_status_self_signed_info">self-signed certificate</string>
|
||||
<string name="pref_cast_double_fix_summary">Enable this if you see duplicates in your casting menu</string>
|
||||
|
||||
</resources>
|
||||
|
|
|
@ -43,10 +43,11 @@
|
|||
android:targetPackage="com.mgoogle.android.gms" />
|
||||
</Preference>
|
||||
<SwitchPreferenceCompat
|
||||
android:key="pref_cast_enabled"
|
||||
android:title="@string/pref_cast_service"
|
||||
android:key="pref_cast_double_fix_enabled"
|
||||
android:title="@string/pref_cast_double_fix"
|
||||
android:icon="@drawable/ic_cast_black"
|
||||
android:defaultValue="true"/>
|
||||
android:summary="@string/pref_cast_double_fix_summary"
|
||||
android:defaultValue="false"/>
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:layout="@layout/preference_category_no_label">
|
||||
<Preference
|
||||
|
|
Loading…
Reference in a new issue