From e23157bbb02de64ac7e1cf751e33a59c912e906f Mon Sep 17 00:00:00 2001 From: Tracy Zhou Date: Sat, 10 Jul 2021 00:12:15 -0700 Subject: [PATCH] End live tile for overview actions in Android Go Fixes: 193275019 Test: N/A Change-Id: I0c22e557face73f656273da4fec4521a9c86d606 --- .../src/com/android/quickstep/TaskOverlayFactoryGo.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/go/quickstep/src/com/android/quickstep/TaskOverlayFactoryGo.java b/go/quickstep/src/com/android/quickstep/TaskOverlayFactoryGo.java index f3c7a026bd..fc07162227 100644 --- a/go/quickstep/src/com/android/quickstep/TaskOverlayFactoryGo.java +++ b/go/quickstep/src/com/android/quickstep/TaskOverlayFactoryGo.java @@ -243,7 +243,7 @@ public final class TaskOverlayFactoryGo extends TaskOverlayFactory { @SuppressLint("NewApi") public void onListen() { if (mIsAllowedByPolicy) { - sendNIUIntent(ACTION_LISTEN); + endLiveTileMode(() -> sendNIUIntent(ACTION_LISTEN)); } else { showBlockedByPolicyMessage(); } @@ -252,7 +252,7 @@ public final class TaskOverlayFactoryGo extends TaskOverlayFactory { @SuppressLint("NewApi") public void onTranslate() { if (mIsAllowedByPolicy) { - sendNIUIntent(ACTION_TRANSLATE); + endLiveTileMode(() -> sendNIUIntent(ACTION_TRANSLATE)); } else { showBlockedByPolicyMessage(); } @@ -261,7 +261,7 @@ public final class TaskOverlayFactoryGo extends TaskOverlayFactory { @SuppressLint("NewApi") public void onSearch() { if (mIsAllowedByPolicy) { - sendNIUIntent(ACTION_SEARCH); + endLiveTileMode(() -> sendNIUIntent(ACTION_SEARCH)); } else { showBlockedByPolicyMessage(); }