End live tile for overview actions in Android Go
Fixes: 193275019 Test: N/A Change-Id: I0c22e557face73f656273da4fec4521a9c86d606
This commit is contained in:
parent
65471b8862
commit
e23157bbb0
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue