OSDN Git Service

Fix clipping for edit screen of Quick Settings
authorAkira Oshimi <akira.x.oshimi@sonymobile.com>
Fri, 16 Dec 2016 09:57:28 +0000 (18:57 +0900)
committerYoshinori Hirano <Yoshinori.Hirano@sonymobile.com>
Wed, 11 Jan 2017 02:58:34 +0000 (02:58 +0000)
The width of the edit screen is fixed when the display size is updated
in landscape mode. So when the device is rotated to portrait mode, the
width is not updated and the edit screen is truncated.
To fix this issue, "match_parent" should be used to match to the width
of Notification Panel always.

Bug: 34206618
Test: manual - go to Settings, rotate device to landscape mode, change
               display size (Default > Large > Default), rotate device
               to portrait mode and show QS edit screen

Change-Id: I35ac623812908a61cd34357e6bda567cab55ace1

packages/SystemUI/res/layout/qs_customize_panel_content.xml

index ca0248e..04d0e65 100644 (file)
@@ -27,7 +27,7 @@
 
     <android.support.v7.widget.RecyclerView
         android:id="@android:id/list"
-        android:layout_width="@dimen/notification_panel_width"
+        android:layout_width="match_parent"
         android:layout_height="0dp"
         android:layout_weight="1"
         android:scrollIndicators="top"