Merge "Fix the overlap issue of MainSwitch and list view." into sc-dev am: c4d839e3df

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13746187

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1c6191294fa54fbebe51dc50e206b1b787e02028
This commit is contained in:
Stanley Wang
2021-03-04 13:10:17 +00:00
committed by Automerger Merge Worker
2 changed files with 1 additions and 2 deletions

View File

@@ -309,6 +309,7 @@ public class SettingsActivity extends SettingsBaseActivity
mMainSwitch = findViewById(R.id.switch_bar);
if (mMainSwitch != null) {
mMainSwitch.setMetricsTag(getMetricsTag());
mMainSwitch.setTranslationZ(findViewById(R.id.main_content).getTranslationZ() + 1);
}
// see if we should show Back/Next buttons

View File

@@ -200,8 +200,6 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
mSwitchBar = ((SettingsActivity) getActivity()).getSwitchBar();
mSwitchBar.setTitle(getContext().getString(R.string.developer_options_main_switch_title));
mSwitchBar.show();
mSwitchBar.setTranslationZ(
getActivity().findViewById(R.id.main_content).getTranslationZ() + 1);
mSwitchBarController = new DevelopmentSwitchBarController(
this /* DevelopmentSettings */, mSwitchBar, mIsAvailable,
getSettingsLifecycle());