Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5067333 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

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
parent 620be98f
Loading
Loading
Loading
Loading
+7 −4
Original line number Original line Diff line number Diff line
@@ -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);
    }
    }
+1 −3
Original line number Original line Diff line number Diff line
@@ -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;
    }
    }