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

Commit 1dcb129f authored by Joel Galenson's avatar Joel Galenson
Browse files

Fix permissions scrolling.

My previous commit accidentally created an empty block when scrolling
to the bottom of the page.  This should fix that while retaining the
desired behavior of scrolling the header.

Test: Scroll pages.
Change-Id: I759333727f9fb8d65aee0bfb0c7806fb48776c09
parent 09f3797a
Loading
Loading
Loading
Loading
+15 −19
Original line number Diff line number Diff line
@@ -14,42 +14,38 @@
     limitations under the License.
-->

<LinearLayout
<FrameLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical">
    android:layout_height="match_parent">

    <androidx.core.widget.NestedScrollView
    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:fillViewport="true">
        android:layout_height="match_parent">

        <LinearLayout
        <androidx.core.widget.NestedScrollView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">
            android:layout_height="match_parent">

            <LinearLayout
            <FrameLayout
                android:id="@+id/prefs_container"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical">
                android:layout_height="match_parent">

                <TextView
                    android:id="@+id/no_permissions"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:gravity="center_horizontal"
                    android:layout_height="match_parent"
                    android:gravity="center"
                    style="?android:attr/textAppearanceLarge">
                </TextView>

            </LinearLayout>
            </FrameLayout>

            <include layout="@layout/loading_container" />
        </androidx.core.widget.NestedScrollView>

        </LinearLayout>
        <include layout="@layout/loading_container" />

    </androidx.core.widget.NestedScrollView>
    </FrameLayout>

</LinearLayout>
</FrameLayout>
+1 −1
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ public abstract class PermissionsFrameFragment extends PreferenceFragmentCompat
        mPreferencesContainer = (ViewGroup) super.onCreateView(
                inflater, mPrefsView, savedInstanceState);
        setLoading(mIsLoading, false, true /* force */);
        mPrefsView.addView(mPreferencesContainer, 0);
        mPrefsView.addView(mPreferencesContainer);
        return rootView;
    }