Merge "Only enable up button if device is provisioned"
This commit is contained in:
committed by
Android (Google) Code Review
commit
fcb3d8d0b9
@@ -308,8 +308,9 @@ public class SettingsActivity extends SettingsDrawerActivity
|
|||||||
|
|
||||||
ActionBar actionBar = getActionBar();
|
ActionBar actionBar = getActionBar();
|
||||||
if (actionBar != null) {
|
if (actionBar != null) {
|
||||||
actionBar.setDisplayHomeAsUpEnabled(true);
|
boolean deviceProvisioned = Utils.isDeviceProvisioned(this);
|
||||||
actionBar.setHomeButtonEnabled(true);
|
actionBar.setDisplayHomeAsUpEnabled(deviceProvisioned);
|
||||||
|
actionBar.setHomeButtonEnabled(deviceProvisioned);
|
||||||
actionBar.setDisplayShowTitleEnabled(!mIsShowingDashboard);
|
actionBar.setDisplayShowTitleEnabled(!mIsShowingDashboard);
|
||||||
}
|
}
|
||||||
mSwitchBar = findViewById(R.id.switch_bar);
|
mSwitchBar = findViewById(R.id.switch_bar);
|
||||||
|
Reference in New Issue
Block a user