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

Commit 8c2b48df authored by abdullahirum's avatar abdullahirum
Browse files

Remove clipping and stabilize lock preview screen

The diff removes the clipping from the color picker ticks and adds a fake view to stabilize the
preview for lock screen in order to see the shortcut links

video: https://drive.google.com/file/d/1q1bdU3PjkTlQsKVzMSlVGd7NVZOzr9yy/view?usp=share_link&resourcekey=0-UUqq4QT8JCt6KDIx3ztzRg

Bug: 276005686
Test: manual
Change-Id: I008911ec9954293b894dc73221fc075c7c72cbb0
parent 2c554e71
Loading
Loading
Loading
Loading
+35 −12
Original line number Diff line number Diff line
@@ -102,14 +102,22 @@
                android:orientation="vertical"
                android:clipChildren="false">

                <FrameLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:clipChildren="false">

                    <HorizontalScrollView
                        android:id="@+id/color_options_scroll_view"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:clipChildren="false"
                        android:scrollbars="none">

                        <LinearLayout
                            android:id="@+id/color_options"
                            android:clipToPadding="false"
                            android:clipChildren="false"
                            android:paddingHorizontal="16dp"
                            android:layout_marginBottom="16dp"
                            android:layout_width="wrap_content"
@@ -119,6 +127,21 @@
                            android:showDividers="middle" />
                    </HorizontalScrollView>

                    <!--
                        This is just an invisible placeholder put in place so that the parent keeps
                        its height stable as the RecyclerView updates from 0 items to N items.
                        Keeping it stable allows the layout logic to keep the size of the preview
                        container stable as well, which bodes well for setting up the SurfaceView
                        for remote rendering without changing its size after the content is loaded
                        into the RecyclerView.
                        -->
                    <include
                        layout="@layout/clock_color_option"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:visibility="invisible" />
                </FrameLayout>

                <SeekBar
                    android:id="@+id/slider"
                    android:layout_width="match_parent"