From b480fe45ce7c20a3f4652b3970f3272888f94772 Mon Sep 17 00:00:00 2001 From: vadimt Date: Fri, 15 Mar 2019 17:30:05 -0700 Subject: [PATCH] Using startActivityForResult to open DWB properties This will let the callee to figure out who has activated it. Bug: 118319143 Change-Id: Ica31ecb15df6cc01038000b051712716da5519de --- .../src/com/android/quickstep/views/DigitalWellBeingToast.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/DigitalWellBeingToast.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/DigitalWellBeingToast.java index 19e9cb4ff6..cf42a36ab7 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/DigitalWellBeingToast.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/DigitalWellBeingToast.java @@ -198,7 +198,7 @@ public final class DigitalWellBeingToast extends LinearLayout { final ActivityOptions options = ActivityOptions.makeScaleUpAnimation( this, 0, 0, getWidth(), getHeight()); - launcher.startActivity(intent, options.toBundle()); + launcher.startActivityForResult(intent, 0, options.toBundle()); launcher.getUserEventDispatcher().logActionOnControl(LauncherLogProto.Action.Touch.TAP, LauncherLogProto.ControlType.APP_USAGE_SETTINGS, this); } catch (ActivityNotFoundException e) {