am 3268a44e: am a5067333: Disable the header list of DebugSettingsActivity
* commit '3268a44e1cde2f4e14d01ac62e2e1a6e9a70a601': Disable the header list of DebugSettingsActivitymain
commit
a75ada5000
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue