End live tile for overview actions in Android Go am: e23157bbb0

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15249978

Change-Id: I1cb98c8036d02d2e43cf761836c608a8d48880d7
This commit is contained in:
Tracy Zhou
2021-07-10 16:24:04 +00:00
committed by Automerger Merge Worker
@@ -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();
}