Skip to content
Snippets Groups Projects
Commit 3268a44e authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka Committed by Android Git Automerger
Browse files

am a5067333: Disable the header list of DebugSettingsActivity

* commit 'a5067333':
  Disable the header list of DebugSettingsActivity
parents f33f1cab a5067333
No related branches found
No related tags found
No related merge requests found
...@@ -21,15 +21,18 @@ import android.os.Bundle; ...@@ -21,15 +21,18 @@ import android.os.Bundle;
import android.preference.PreferenceActivity; import android.preference.PreferenceActivity;
public final class DebugSettingsActivity extends PreferenceActivity { public final class DebugSettingsActivity extends PreferenceActivity {
private static final String DEFAULT_FRAGMENT = DebugSettings.class.getName();
@Override @Override
public Intent getIntent() { public Intent getIntent() {
final Intent modIntent = new Intent(super.getIntent()); final Intent intent = super.getIntent();
modIntent.putExtra(EXTRA_SHOW_FRAGMENT, DebugSettings.class.getName()); intent.putExtra(EXTRA_SHOW_FRAGMENT, DEFAULT_FRAGMENT);
return modIntent; intent.putExtra(EXTRA_NO_HEADERS, true);
return intent;
} }
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setTitle(R.string.english_ime_debug_settings); setTitle(R.string.english_ime_debug_settings);
} }
......
...@@ -25,9 +25,7 @@ public final class SettingsActivity extends PreferenceActivity { ...@@ -25,9 +25,7 @@ public final class SettingsActivity extends PreferenceActivity {
@Override @Override
public Intent getIntent() { public Intent getIntent() {
final Intent intent = super.getIntent(); final Intent intent = super.getIntent();
if (!intent.hasExtra(EXTRA_SHOW_FRAGMENT)) { intent.putExtra(EXTRA_SHOW_FRAGMENT, DEFAULT_FRAGMENT);
intent.putExtra(EXTRA_SHOW_FRAGMENT, DEFAULT_FRAGMENT);
}
intent.putExtra(EXTRA_NO_HEADERS, true); intent.putExtra(EXTRA_NO_HEADERS, true);
return intent; return intent;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment