From 58905b4f0a59cad3c7d256971937d38a25f3198f Mon Sep 17 00:00:00 2001 From: Jon Spivack Date: Thu, 24 Jun 2021 14:55:40 -0700 Subject: [PATCH] NIU Actions: Add privacy confirmation dialog This adds a dialog to inform the user that the NIU Actions buttons need to send data to Google in order to function. The user can accept or reject this. The dialog will block use of the feature until the user accepts. Bug: 191818216 Test: Manual (Pixel 3A with multiple user profiles) Test: m -j RunLauncherGoGoogleRoboTests Change-Id: Iedd056ce239de5269d02a31d28a9778efae34ede --- .../res/drawable/round_rect_dialog.xml | 20 ++++ .../niu_actions_confirmation_dialog.xml | 94 +++++++++++++++++++ go/quickstep/res/values-land/dimens.xml | 22 +++++ go/quickstep/res/values/attrs.xml | 2 + go/quickstep/res/values/colors.xml | 3 + go/quickstep/res/values/dimens.xml | 8 ++ go/quickstep/res/values/strings.xml | 9 ++ go/quickstep/res/values/styles.xml | 31 ++++++ .../quickstep/TaskOverlayFactoryGo.java | 57 +++++++++++ 9 files changed, 246 insertions(+) create mode 100644 go/quickstep/res/drawable/round_rect_dialog.xml create mode 100644 go/quickstep/res/layout/niu_actions_confirmation_dialog.xml create mode 100644 go/quickstep/res/values-land/dimens.xml diff --git a/go/quickstep/res/drawable/round_rect_dialog.xml b/go/quickstep/res/drawable/round_rect_dialog.xml new file mode 100644 index 0000000000..bbb7c5b545 --- /dev/null +++ b/go/quickstep/res/drawable/round_rect_dialog.xml @@ -0,0 +1,20 @@ + + + + + diff --git a/go/quickstep/res/layout/niu_actions_confirmation_dialog.xml b/go/quickstep/res/layout/niu_actions_confirmation_dialog.xml new file mode 100644 index 0000000000..db1531ac58 --- /dev/null +++ b/go/quickstep/res/layout/niu_actions_confirmation_dialog.xml @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + + + + + + + + + +