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: I710a00ff8bda43467c0310f42978e4635eff6434
This commit is contained in:
commit
cbe71f0eff
1 file changed
+3
-3
@@ -243,7 +243,7 @@ public final class TaskOverlayFactoryGo extends TaskOverlayFactory {
|
|||||||
@SuppressLint("NewApi")
|
@SuppressLint("NewApi")
|
||||||
public void onListen() {
|
public void onListen() {
|
||||||
if (mIsAllowedByPolicy) {
|
if (mIsAllowedByPolicy) {
|
||||||
sendNIUIntent(ACTION_LISTEN);
|
endLiveTileMode(() -> sendNIUIntent(ACTION_LISTEN));
|
||||||
} else {
|
} else {
|
||||||
showBlockedByPolicyMessage();
|
showBlockedByPolicyMessage();
|
||||||
}
|
}
|
||||||
@@ -252,7 +252,7 @@ public final class TaskOverlayFactoryGo extends TaskOverlayFactory {
|
|||||||
@SuppressLint("NewApi")
|
@SuppressLint("NewApi")
|
||||||
public void onTranslate() {
|
public void onTranslate() {
|
||||||
if (mIsAllowedByPolicy) {
|
if (mIsAllowedByPolicy) {
|
||||||
sendNIUIntent(ACTION_TRANSLATE);
|
endLiveTileMode(() -> sendNIUIntent(ACTION_TRANSLATE));
|
||||||
} else {
|
} else {
|
||||||
showBlockedByPolicyMessage();
|
showBlockedByPolicyMessage();
|
||||||
}
|
}
|
||||||
@@ -261,7 +261,7 @@ public final class TaskOverlayFactoryGo extends TaskOverlayFactory {
|
|||||||
@SuppressLint("NewApi")
|
@SuppressLint("NewApi")
|
||||||
public void onSearch() {
|
public void onSearch() {
|
||||||
if (mIsAllowedByPolicy) {
|
if (mIsAllowedByPolicy) {
|
||||||
sendNIUIntent(ACTION_SEARCH);
|
endLiveTileMode(() -> sendNIUIntent(ACTION_SEARCH));
|
||||||
} else {
|
} else {
|
||||||
showBlockedByPolicyMessage();
|
showBlockedByPolicyMessage();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user