Snap for 8005451 from ad79a1819f
to sc-v2-release
Change-Id: Ic951d318e738bd76c42801aab274863adc1fcc6d
This commit is contained in:
@@ -5278,13 +5278,13 @@
|
||||
<!-- Message of the magnification mode option to choose the magnification mode. [CHAR LIMIT=none] -->
|
||||
<string name="accessibility_magnification_area_settings_mode_switch_summary">Tap the switch button to move between both options</string>
|
||||
<!-- Title for the accessibility magnification switch shortcut dialog. [CHAR LIMIT=48] -->
|
||||
<string name="accessibility_magnification_switch_shortcut_title">This may slow down your keyboard</string>
|
||||
<string name="accessibility_magnification_switch_shortcut_title">Switch to accessibility button?</string>
|
||||
<!-- Message for the accessibility magnification switch shortcut dialog. [CHAR LIMIT=none] -->
|
||||
<string name="accessibility_magnification_switch_shortcut_message">When using triple-tap to magnify part of your screen, you may notice issues over the keyboard.\n\nTo avoid this, you can change your magnification shortcut from triple-tap to another option.\n<annotation id="link">Change setting</annotation></string>
|
||||
<!-- Title for the switch shortcut button in accessibility switch shortcut dialog to confirm the action. [CHAR LIMIT=45] -->
|
||||
<string name="accessibility_magnification_switch_shortcut_positive_button">Continue anyway</string>
|
||||
<!-- Title for the cancel button in accessibility switch shortcut dialog to go back to edit. [CHAR LIMIT=54] -->
|
||||
<string name="accessibility_magnification_switch_shortcut_negative_button">Cancel</string>
|
||||
<string name="accessibility_magnification_switch_shortcut_message">Using triple-tap to magnify part of your screen causes typing and other delays.\n\nThe accessibility button floats on your screen over other apps. Tap it to magnify.</string>
|
||||
<!-- Title for the switch shortcut button in accessibility switch shortcut dialog to change the config shortcut value. [CHAR LIMIT=45] -->
|
||||
<string name="accessibility_magnification_switch_shortcut_positive_button">Switch to accessibility button</string>
|
||||
<!-- Title for the cancel button in accessibility switch shortcut dialog to keep the config shortcut value. [CHAR LIMIT=54] -->
|
||||
<string name="accessibility_magnification_switch_shortcut_negative_button">Use triple-tap</string>
|
||||
<!-- Title for the accessibility preference screen to enable screen magnification settings. [CHAR LIMIT=35] -->
|
||||
<string name="accessibility_magnification_service_settings_title">Magnification settings</string>
|
||||
<!-- Title for the accessibility preference screen to enable triple-tap gesture screen magnification. [CHAR LIMIT=35] -->
|
||||
|
@@ -1230,8 +1230,4 @@ public final class Utils extends com.android.settingslib.Utils {
|
||||
public static int getHomepageIconColorHighlight(Context context) {
|
||||
return getColorAttrDefaultColor(context, android.R.attr.textColorSecondaryInverse);
|
||||
}
|
||||
|
||||
public static boolean isProviderModelEnabled(Context context) {
|
||||
return FeatureFlagUtils.isEnabled(context, FeatureFlagUtils.SETTINGS_PROVIDER_MODEL);
|
||||
}
|
||||
}
|
||||
|
@@ -142,12 +142,7 @@ public class DataUsageList extends DataUsageBaseFragment
|
||||
mChart = findPreference(KEY_CHART_DATA);
|
||||
mApps = findPreference(KEY_APPS_GROUP);
|
||||
|
||||
// TODO(b/167474581): This is a temporary solution to hide unnecessary warning
|
||||
// preference, when the provider model is completed, the following code should be removed.
|
||||
final Preference unnecessaryWarningPreference =
|
||||
FeatureFlagUtils.isEnabled(getContext(), FeatureFlagUtils.SETTINGS_PROVIDER_MODEL)
|
||||
? findPreference("operator_warning")
|
||||
: findPreference("non_carrier_data_usage_warning");
|
||||
final Preference unnecessaryWarningPreference = findPreference("operator_warning");
|
||||
if (unnecessaryWarningPreference != null) {
|
||||
unnecessaryWarningPreference.setVisible(false);
|
||||
}
|
||||
|
@@ -118,9 +118,7 @@ public class NetworkDashboardFragment extends DashboardFragment implements
|
||||
controllers.add(internetPreferenceController);
|
||||
}
|
||||
controllers.add(privateDnsPreferenceController);
|
||||
if (Utils.isProviderModelEnabled(context)) {
|
||||
controllers.add(new NetworkProviderCallsSmsController(context, lifecycle));
|
||||
}
|
||||
controllers.add(new NetworkProviderCallsSmsController(context, lifecycle));
|
||||
return controllers;
|
||||
}
|
||||
|
||||
@@ -155,20 +153,7 @@ public class NetworkDashboardFragment extends DashboardFragment implements
|
||||
}
|
||||
|
||||
public static final BaseSearchIndexProvider SEARCH_INDEX_DATA_PROVIDER =
|
||||
new BaseSearchIndexProvider(R.xml.network_and_internet) {
|
||||
|
||||
@Override
|
||||
// TODO(b/167474581): Should remove this method when Provider Model finished.
|
||||
public List<SearchIndexableResource> getXmlResourcesToIndex(Context context,
|
||||
boolean enabled) {
|
||||
if (Utils.isProviderModelEnabled(context)) {
|
||||
final SearchIndexableResource sir = new SearchIndexableResource(context);
|
||||
sir.xmlResId = R.xml.network_provider_internet;
|
||||
return Arrays.asList(sir);
|
||||
}
|
||||
return super.getXmlResourcesToIndex(context, enabled);
|
||||
}
|
||||
|
||||
new BaseSearchIndexProvider(R.xml.network_provider_internet) {
|
||||
@Override
|
||||
public List<AbstractPreferenceController> createPreferenceControllers(Context
|
||||
context) {
|
||||
|
@@ -58,9 +58,7 @@ public class ConfigureWifiSettings extends DashboardFragment {
|
||||
@Override
|
||||
public void onCreate(Bundle icicle) {
|
||||
super.onCreate(icicle);
|
||||
if (FeatureFlagUtils.isEnabled(getContext(), FeatureFlagUtils.SETTINGS_PROVIDER_MODEL)) {
|
||||
getActivity().setTitle(R.string.network_and_internet_preferences_title);
|
||||
}
|
||||
getActivity().setTitle(R.string.network_and_internet_preferences_title);
|
||||
|
||||
mCertinstallerPreference = findPreference(KEY_INSTALL_CREDENTIALS);
|
||||
if (mCertinstallerPreference != null) {
|
||||
|
Reference in New Issue
Block a user