am 7d9c8b27
: am 62bb4227
: am 6a051168
: Merge "Hide search from everywhere but the dashboard" into mnc-dev
* commit '7d9c8b27ef172f8ea242cb9d94d1bfebc1c282e2': Hide search from everywhere but the dashboard
This commit is contained in:
@@ -607,17 +607,14 @@ public class SettingsActivity extends Activity
|
||||
1 /* one home activity by default */);
|
||||
} else {
|
||||
if (!mIsShowingDashboard) {
|
||||
// Search is shown we are launched thru a Settings "shortcut". UP will be shown
|
||||
// only if it is a sub settings
|
||||
mDisplaySearch = false;
|
||||
// UP will be shown only if it is a sub settings
|
||||
if (mIsShortcut) {
|
||||
mDisplayHomeAsUpEnabled = isSubSettings;
|
||||
mDisplaySearch = false;
|
||||
} else if (isSubSettings) {
|
||||
mDisplayHomeAsUpEnabled = true;
|
||||
mDisplaySearch = true;
|
||||
} else {
|
||||
mDisplayHomeAsUpEnabled = false;
|
||||
mDisplaySearch = false;
|
||||
}
|
||||
setTitleFromIntent(intent);
|
||||
|
||||
|
Reference in New Issue
Block a user