Minor changes in Settings

Battery moved to main menu.

Change-Id: I0db89c197a1256aaac35ceb95bfa4a567ea6613f
This commit is contained in:
Gilles Debunne
2011-06-22 10:12:04 -07:00
parent 127757637b
commit 362bd107a1
4 changed files with 12 additions and 16 deletions

View File

@@ -211,7 +211,9 @@ public class Settings extends PreferenceActivity implements ButtonBarHandler {
public Intent getIntent() {
Intent superIntent = super.getIntent();
String startingFragment = getStartingFragmentClass(superIntent);
if (startingFragment != null && !isMultiPane()) {
// This is called from super.onCreate, isMultiPane() is not yet reliable
// Do not use onIsHidingHeaders either, which relies itself on this method
if (startingFragment != null && !onIsMultiPane()) {
Intent modIntent = new Intent(superIntent);
modIntent.putExtra(EXTRA_SHOW_FRAGMENT, startingFragment);
Bundle args = superIntent.getExtras();