From e03414876a86f4635a8386ee7d74320bd3d308b1 Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Thu, 8 Mar 2018 14:42:50 -0500 Subject: [PATCH] Don't allow foreground notis to be blocked inline. Offer a 'minimize' option instead. Also I'm changing the guts, do a little layout cleanup in the confirmation dialog. Change-Id: I9f2ef824d1f322752bc4161356f16a5dae166caf Fixes: 73898083 Fixes: 73657862 Fixes: 73657452 Test: runtest systemui-notification --- .../SystemUI/res/layout/notification_info.xml | 10 +- packages/SystemUI/res/values/strings.xml | 6 + packages/SystemUI/res/values/styles.xml | 6 + .../systemui/statusbar/NotificationInfo.java | 32 +++- .../statusbar/NotificationInfoTest.java | 156 ++++++++++++++++++ 5 files changed, 204 insertions(+), 6 deletions(-) diff --git a/packages/SystemUI/res/layout/notification_info.xml b/packages/SystemUI/res/layout/notification_info.xml index 759d1ed0393fd..b1cb6cf91cb8f 100644 --- a/packages/SystemUI/res/layout/notification_info.xml +++ b/packages/SystemUI/res/layout/notification_info.xml @@ -29,6 +29,7 @@ + + style="@style/TextAppearance.NotificationInfo.Confirmation"/> You won\'t see these notifications anymore + + These notifications will be minimized + You usually dismiss these notifications. \nKeep showing them? @@ -1539,6 +1542,9 @@ Keep showing + + Minimize + Keep showing notifications from this app? diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml index d65e37d3e93e5..1470dfa4d05d9 100644 --- a/packages/SystemUI/res/values/styles.xml +++ b/packages/SystemUI/res/values/styles.xml @@ -459,6 +459,12 @@ 0.87 + +