Disable the header list of DebugSettingsActivity

This change addresses the issue that the debug settings on 10-inch
tablet doesn't show up.

Change-Id: I60540cf21276869a3ca81b7b0154056ce7d93ff1
main
Tadashi G. Takaoka 2013-03-15 15:30:43 +09:00
parent 620be98feb
commit a50673330e
2 changed files with 8 additions and 7 deletions

View File

@ -21,15 +21,18 @@ import android.os.Bundle;
import android.preference.PreferenceActivity;
public final class DebugSettingsActivity extends PreferenceActivity {
private static final String DEFAULT_FRAGMENT = DebugSettings.class.getName();
@Override
public Intent getIntent() {
final Intent modIntent = new Intent(super.getIntent());
modIntent.putExtra(EXTRA_SHOW_FRAGMENT, DebugSettings.class.getName());
return modIntent;
final Intent intent = super.getIntent();
intent.putExtra(EXTRA_SHOW_FRAGMENT, DEFAULT_FRAGMENT);
intent.putExtra(EXTRA_NO_HEADERS, true);
return intent;
}
@Override
protected void onCreate(Bundle savedInstanceState) {
protected void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTitle(R.string.english_ime_debug_settings);
}

View File

@ -25,9 +25,7 @@ public final class SettingsActivity extends PreferenceActivity {
@Override
public Intent 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);
return intent;
}