Merge "Bug 4950070: correct title in Settings"
This commit is contained in:
committed by
Android (Google) Code Review
commit
ced7c03a11
@@ -81,7 +81,7 @@ public class Settings extends PreferenceActivity implements ButtonBarHandler {
|
|||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
mInLocalHeaderSwitch = false;
|
mInLocalHeaderSwitch = false;
|
||||||
|
|
||||||
if (isMultiPane()) {
|
if (!onIsHidingHeaders() && onIsMultiPane()) {
|
||||||
highlightHeader();
|
highlightHeader();
|
||||||
// Force the title so that it doesn't get overridden by a direct launch of
|
// Force the title so that it doesn't get overridden by a direct launch of
|
||||||
// a specific settings screen.
|
// a specific settings screen.
|
||||||
@@ -193,7 +193,7 @@ public class Settings extends PreferenceActivity implements ButtonBarHandler {
|
|||||||
|
|
||||||
// If it is not launched from history, then reset to top-level
|
// If it is not launched from history, then reset to top-level
|
||||||
if ((intent.getFlags() & Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY) == 0
|
if ((intent.getFlags() & Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY) == 0
|
||||||
&& mFirstHeader != null && isMultiPane()) {
|
&& mFirstHeader != null && !onIsHidingHeaders() && onIsMultiPane()) {
|
||||||
switchToHeaderLocal(mFirstHeader);
|
switchToHeaderLocal(mFirstHeader);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user