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

Commit 68c30999 authored by Amith Yamasani's avatar Amith Yamasani Committed by Android (Google) Code Review
Browse files

Merge "Make the headers pane disappear in no-headers mode, not just the ListView."

parents 7aa41404 05fbc31e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -455,7 +455,7 @@ public abstract class PreferenceActivity extends ListActivity implements
        // visibility for other configurations.
        if (initialFragment != null && mSinglePane) {
            // Single pane, showing just a prefs fragment.
            getListView().setVisibility(View.GONE);
            findViewById(com.android.internal.R.id.headers).setVisibility(View.GONE);
            mPrefsContainer.setVisibility(View.VISIBLE);
        } else if (mHeaders.size() > 0) {
            mAdapter = new HeaderAdapter(this, mHeaders);
+1 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@
        android:layout_weight="1">

        <LinearLayout
            android:id="@+id/headers"
            android:orientation="vertical"
            android:layout_width="0px"
            android:layout_height="match_parent"