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

Commit eadd5a90 authored by Filip Pavlis's avatar Filip Pavlis
Browse files

Fix incorrect header highlight when in single-pane.

Bug: 35216626
Test: Case will be covered in ag/1761868

Change-Id: I877823762a44d6545c80f4f59b29f190c389ba09
parent b8a33125
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -602,8 +602,10 @@ public abstract class PreferenceActivity extends ListActivity implements
        if (mHeaders.size() > 0) {
            setListAdapter(new HeaderAdapter(this, mHeaders, mPreferenceHeaderItemResId,
                    mPreferenceHeaderRemoveEmptyIcon));
            if (!mSinglePane) {
                getListView().setChoiceMode(AbsListView.CHOICE_MODE_SINGLE);
            }
        }

        if (mSinglePane && initialFragment != null && initialTitle != 0) {
            CharSequence initialTitleStr = getText(initialTitle);