Remove redundant toolbar from CollapsingToolbarLayout
The new material library has been updated to be able to support android.widget.Toolbar, so the redundant toolbar has to be removed. Bug: 176882938 Test: visual verified Change-Id: Ibada6b9d315c14d79e9f9f8015cbb5e00fbeea38
This commit is contained in:
@@ -288,9 +288,7 @@ public class SettingsActivity extends SettingsBaseActivity
|
||||
if (actionBar != null) {
|
||||
actionBar.setDisplayHomeAsUpEnabled(!isInSetupWizard);
|
||||
actionBar.setHomeButtonEnabled(!isInSetupWizard);
|
||||
// TODO(b/176882938): Enable title after material component updated
|
||||
// If CollapsingToolbarLayout is applied, the old action bar won't show title.
|
||||
actionBar.setDisplayShowTitleEnabled(mCollapsingToolbarLayout == null);
|
||||
actionBar.setDisplayShowTitleEnabled(true);
|
||||
}
|
||||
mSwitchBar = findViewById(R.id.switch_bar);
|
||||
if (mSwitchBar != null) {
|
||||
|
@@ -115,9 +115,7 @@ public class MobileNetworkActivity extends SettingsBaseActivity
|
||||
final ActionBar actionBar = getActionBar();
|
||||
if (actionBar != null) {
|
||||
actionBar.setDisplayHomeAsUpEnabled(true);
|
||||
// TODO(b/176882938): Enable title after material component updated
|
||||
// If CollapsingToolbarLayout is applied, the old action bar won't show title.
|
||||
actionBar.setDisplayShowTitleEnabled(mCollapsingToolbarLayout == null);
|
||||
actionBar.setDisplayShowTitleEnabled(true);
|
||||
}
|
||||
|
||||
getProxySubscriptionManager().setLifecycle(getLifecycle());
|
||||
|
Reference in New Issue
Block a user