Fix the overlap issue of MainSwitch and list view.
This issue happen on Developer and Wi-Fi pages, so the problem should be solved on SettingsActivity. Fix: 181341927 Test: Run robotest and see the ui Change-Id: I57722cfcbeb6390c88101d808429346045e57c92
This commit is contained in:
@@ -309,6 +309,7 @@ public class SettingsActivity extends SettingsBaseActivity
|
|||||||
mMainSwitch = findViewById(R.id.switch_bar);
|
mMainSwitch = findViewById(R.id.switch_bar);
|
||||||
if (mMainSwitch != null) {
|
if (mMainSwitch != null) {
|
||||||
mMainSwitch.setMetricsTag(getMetricsTag());
|
mMainSwitch.setMetricsTag(getMetricsTag());
|
||||||
|
mMainSwitch.setTranslationZ(findViewById(R.id.main_content).getTranslationZ() + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// see if we should show Back/Next buttons
|
// see if we should show Back/Next buttons
|
||||||
|
@@ -200,8 +200,6 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
|
|||||||
mSwitchBar = ((SettingsActivity) getActivity()).getSwitchBar();
|
mSwitchBar = ((SettingsActivity) getActivity()).getSwitchBar();
|
||||||
mSwitchBar.setTitle(getContext().getString(R.string.developer_options_main_switch_title));
|
mSwitchBar.setTitle(getContext().getString(R.string.developer_options_main_switch_title));
|
||||||
mSwitchBar.show();
|
mSwitchBar.show();
|
||||||
mSwitchBar.setTranslationZ(
|
|
||||||
getActivity().findViewById(R.id.main_content).getTranslationZ() + 1);
|
|
||||||
mSwitchBarController = new DevelopmentSwitchBarController(
|
mSwitchBarController = new DevelopmentSwitchBarController(
|
||||||
this /* DevelopmentSettings */, mSwitchBar, mIsAvailable,
|
this /* DevelopmentSettings */, mSwitchBar, mIsAvailable,
|
||||||
getSettingsLifecycle());
|
getSettingsLifecycle());
|
||||||
|
Reference in New Issue
Block a user