Loading core/java/android/service/notification/Condition.java +1 −1 Original line number Diff line number Diff line Loading @@ -160,7 +160,7 @@ public class Condition implements Parcelable { } public static boolean isValidId(Uri id, String pkg) { return id != null && id.getScheme().equals(SCHEME) && id.getAuthority().equals(pkg); return id != null && SCHEME.equals(id.getScheme()) && pkg.equals(id.getAuthority()); } public static final Parcelable.Creator<Condition> CREATOR Loading packages/SystemUI/res/layout/zen_mode_condition.xml +4 −3 Original line number Diff line number Diff line Loading @@ -17,14 +17,15 @@ <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="@dimen/qs_detail_item_height" android:layout_marginBottom="@dimen/zen_mode_condition_detail_item_spacing" android:layout_marginStart="@dimen/zen_mode_condition_detail_button_padding" android:layout_marginEnd="@dimen/zen_mode_condition_detail_button_padding" > <RadioButton android:id="@android:id/checkbox" android:layout_width="40dp" android:layout_marginStart="2dp" android:layout_marginEnd="1dp" android:layout_marginStart="7dp" android:layout_marginEnd="4dp" android:layout_height="match_parent" android:layout_alignParentStart="true" android:gravity="center" /> Loading @@ -51,6 +52,7 @@ android:id="@android:id/text2" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/zen_mode_condition_detail_item_interline_spacing" android:ellipsize="end" android:textAlignment="viewStart" android:maxLines="1" Loading @@ -64,7 +66,6 @@ android:layout_width="48dp" android:layout_height="48dp" android:layout_centerVertical="true" android:layout_marginEnd="@dimen/zen_mode_condition_detail_button_padding" android:scaleType="center" android:layout_toStartOf="@android:id/button2" android:contentDescription="@string/accessibility_quick_settings_less_time" Loading packages/SystemUI/res/layout/zen_mode_panel.xml +5 −1 Original line number Diff line number Diff line Loading @@ -58,6 +58,8 @@ android:background="@drawable/btn_borderless_rect" android:clickable="true" android:drawableEnd="@drawable/qs_subhead_caret" android:maxLines="2" android:ellipsize="end" android:textAppearance="@style/TextAppearance.QS.Subhead" /> <TextView Loading @@ -67,6 +69,8 @@ android:layout_gravity="center_vertical" android:gravity="center_vertical" android:paddingLeft="8dp" android:maxLines="2" android:ellipsize="end" android:textAppearance="@style/TextAppearance.QS.Subhead" /> <ImageView Loading @@ -87,6 +91,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:paddingBottom="@dimen/qs_panel_padding" /> android:paddingBottom="@dimen/zen_mode_condition_detail_bottom_padding" /> </com.android.systemui.volume.ZenModePanel> packages/SystemUI/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -278,6 +278,9 @@ <!-- Number of times to show the strong alarm warning text in the volume dialog --> <integer name="zen_mode_alarm_warning_threshold">5</integer> <!-- Maximum number of optional conditions to display in the zen mode selection panel --> <integer name="zen_mode_max_conditions">3</integer> <!-- Enable the default volume dialog --> <bool name="enable_volume_ui">true</bool> </resources> Loading packages/SystemUI/res/values/dimens.xml +10 −0 Original line number Diff line number Diff line Loading @@ -197,8 +197,18 @@ <!-- How far the expanded QS panel peeks from the header in collapsed state. --> <dimen name="qs_peek_height">8dp</dimen> <!-- Zen mode panel: condition item button padding --> <dimen name="zen_mode_condition_detail_button_padding">8dp</dimen> <!-- Zen mode panel: spacing between condition items --> <dimen name="zen_mode_condition_detail_item_spacing">12dp</dimen> <!-- Zen mode panel: spacing between two-line condition upper and lower lines --> <dimen name="zen_mode_condition_detail_item_interline_spacing">4dp</dimen> <!-- Zen mode panel: bottom padding, a bit less than qs_panel_padding --> <dimen name="zen_mode_condition_detail_bottom_padding">4dp</dimen> <!-- used by DessertCase --> <dimen name="dessert_case_cell_size">192dp</dimen> Loading Loading
core/java/android/service/notification/Condition.java +1 −1 Original line number Diff line number Diff line Loading @@ -160,7 +160,7 @@ public class Condition implements Parcelable { } public static boolean isValidId(Uri id, String pkg) { return id != null && id.getScheme().equals(SCHEME) && id.getAuthority().equals(pkg); return id != null && SCHEME.equals(id.getScheme()) && pkg.equals(id.getAuthority()); } public static final Parcelable.Creator<Condition> CREATOR Loading
packages/SystemUI/res/layout/zen_mode_condition.xml +4 −3 Original line number Diff line number Diff line Loading @@ -17,14 +17,15 @@ <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="@dimen/qs_detail_item_height" android:layout_marginBottom="@dimen/zen_mode_condition_detail_item_spacing" android:layout_marginStart="@dimen/zen_mode_condition_detail_button_padding" android:layout_marginEnd="@dimen/zen_mode_condition_detail_button_padding" > <RadioButton android:id="@android:id/checkbox" android:layout_width="40dp" android:layout_marginStart="2dp" android:layout_marginEnd="1dp" android:layout_marginStart="7dp" android:layout_marginEnd="4dp" android:layout_height="match_parent" android:layout_alignParentStart="true" android:gravity="center" /> Loading @@ -51,6 +52,7 @@ android:id="@android:id/text2" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/zen_mode_condition_detail_item_interline_spacing" android:ellipsize="end" android:textAlignment="viewStart" android:maxLines="1" Loading @@ -64,7 +66,6 @@ android:layout_width="48dp" android:layout_height="48dp" android:layout_centerVertical="true" android:layout_marginEnd="@dimen/zen_mode_condition_detail_button_padding" android:scaleType="center" android:layout_toStartOf="@android:id/button2" android:contentDescription="@string/accessibility_quick_settings_less_time" Loading
packages/SystemUI/res/layout/zen_mode_panel.xml +5 −1 Original line number Diff line number Diff line Loading @@ -58,6 +58,8 @@ android:background="@drawable/btn_borderless_rect" android:clickable="true" android:drawableEnd="@drawable/qs_subhead_caret" android:maxLines="2" android:ellipsize="end" android:textAppearance="@style/TextAppearance.QS.Subhead" /> <TextView Loading @@ -67,6 +69,8 @@ android:layout_gravity="center_vertical" android:gravity="center_vertical" android:paddingLeft="8dp" android:maxLines="2" android:ellipsize="end" android:textAppearance="@style/TextAppearance.QS.Subhead" /> <ImageView Loading @@ -87,6 +91,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:paddingBottom="@dimen/qs_panel_padding" /> android:paddingBottom="@dimen/zen_mode_condition_detail_bottom_padding" /> </com.android.systemui.volume.ZenModePanel>
packages/SystemUI/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -278,6 +278,9 @@ <!-- Number of times to show the strong alarm warning text in the volume dialog --> <integer name="zen_mode_alarm_warning_threshold">5</integer> <!-- Maximum number of optional conditions to display in the zen mode selection panel --> <integer name="zen_mode_max_conditions">3</integer> <!-- Enable the default volume dialog --> <bool name="enable_volume_ui">true</bool> </resources> Loading
packages/SystemUI/res/values/dimens.xml +10 −0 Original line number Diff line number Diff line Loading @@ -197,8 +197,18 @@ <!-- How far the expanded QS panel peeks from the header in collapsed state. --> <dimen name="qs_peek_height">8dp</dimen> <!-- Zen mode panel: condition item button padding --> <dimen name="zen_mode_condition_detail_button_padding">8dp</dimen> <!-- Zen mode panel: spacing between condition items --> <dimen name="zen_mode_condition_detail_item_spacing">12dp</dimen> <!-- Zen mode panel: spacing between two-line condition upper and lower lines --> <dimen name="zen_mode_condition_detail_item_interline_spacing">4dp</dimen> <!-- Zen mode panel: bottom padding, a bit less than qs_panel_padding --> <dimen name="zen_mode_condition_detail_bottom_padding">4dp</dimen> <!-- used by DessertCase --> <dimen name="dessert_case_cell_size">192dp</dimen> Loading