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

Verified Commit d9d3325c authored by Marvin W.'s avatar Marvin W. 🐿️
Browse files

EN: Add scrolling to confirmation dialog

Useful for small screen + large font devices
parent bce75416
Loading
Loading
Loading
Loading
+66 −54
Original line number Diff line number Diff line
@@ -23,13 +23,23 @@
        android:textColor="?android:attr/textColorPrimary"
        tools:text="@string/exposure_confirm_start_title" />

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:animateLayoutChanges="true"
            android:orientation="vertical">

            <TextView
                android:id="@android:id/summary"
                style="@style/TextAppearance.AppCompat.Small"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:padding="16dp"
        tools:text="Your phone needs to use Bluetooth to securely collect and share IDs with other phones that are nearby.\n\nCorona Warn can notify you if you were exposed to someone who reported to be diagnosed positive.\n\nThe date, duration, and signal strength associated with an exposure will be shared with the app." />
                tools:text="Your phonre needs to use Bluetooth to securely collect and share IDs with other phones that are nearby.\n\nCorona Warn can notify you if you were exposed to someone who reported to be diagnosed positive.\n\nThe date, duration, and signal strength associated with an exposure will be shared with the app." />

            <LinearLayout
                android:id="@+id/grant_permission_view"
@@ -38,7 +48,6 @@
                android:layout_marginBottom="8dp"
                android:background="?attr/colorAccent"
                android:clipToPadding="false"
        android:padding="16dp"
                android:visibility="gone"
                tools:visibility="visible">

@@ -48,6 +57,7 @@
                    android:layout_width="0dip"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:padding="16dp"
                    android:text="@string/exposure_confirm_permission_description" />

                <Button
@@ -55,8 +65,8 @@
                    style="@style/Widget.AppCompat.Button.Borderless"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:layout_marginRight="-8dp"
                    android:layout_gravity="center_vertical"
                    android:padding="16dp"
                    android:text="@string/exposure_confirm_permission_button"
                    android:textColor="?android:attr/textColorPrimaryInverse" />
            </LinearLayout>
@@ -85,3 +95,5 @@
                    android:text="@android:string/ok" />
            </LinearLayout>
        </LinearLayout>
    </ScrollView>
</LinearLayout>