Fix the screen will move by itself when enabled Color correction.
Root Cause: Using the listener to update the UI dynamically might have some time delay. Solution: Refactor to another implementation and avoid using the listener to update it. Additional condition: Add height restriction in preference to avoid the palette view to cover whole screen. Bug: 148785841 Test: make RunSettingsRoboTests ROBOTEST_FILTER=PaletteListPreferenceTest Change-Id: I6a854e16321b3426e2f8ff65c6404036d55caed4
This commit is contained in:
@@ -17,13 +17,13 @@
|
||||
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/preview_viewport"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.android.settings.accessibility.PaletteListView
|
||||
android:id="@+id/palette_listView"
|
||||
<LinearLayout
|
||||
android:id="@+id/palette_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:importantForAccessibility="noHideDescendants" />
|
||||
|
||||
android:orientation="vertical"
|
||||
android:importantForAccessibility="noHideDescendants"/>
|
||||
</FrameLayout>
|
||||
|
||||
Reference in New Issue
Block a user