DO NOT MERGE Dismiss system dialog
This fixed the keypad remains ON when switch facet issue.
BUG: 130573446, 149228466
Test: Manual
Change-Id: Ia449fb41a03bc02498471ded660d573d5b1ad141
(cherry picked from commit 82298783683ebe82a5847dfd35fc8b3528709930)
(cherry picked from commit ebff32a5d6)
This commit is contained in:
@@ -125,13 +125,19 @@ public class CarFacetButton extends LinearLayout {
|
|||||||
|
|
||||||
/** Defines the behavior of a button click. */
|
/** Defines the behavior of a button click. */
|
||||||
protected OnClickListener getButtonClickListener(Intent toSend) {
|
protected OnClickListener getButtonClickListener(Intent toSend) {
|
||||||
return v -> mContext.startActivityAsUser(toSend, UserHandle.CURRENT);
|
return v -> {
|
||||||
|
mContext.startActivityAsUser(toSend, UserHandle.CURRENT);
|
||||||
|
mContext.sendBroadcastAsUser(
|
||||||
|
new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS), UserHandle.CURRENT);
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Defines the behavior of a long click. */
|
/** Defines the behavior of a long click. */
|
||||||
protected OnLongClickListener getButtonLongClickListener(Intent toSend) {
|
protected OnLongClickListener getButtonLongClickListener(Intent toSend) {
|
||||||
return v -> {
|
return v -> {
|
||||||
mContext.startActivityAsUser(toSend, UserHandle.CURRENT);
|
mContext.startActivityAsUser(toSend, UserHandle.CURRENT);
|
||||||
|
mContext.sendBroadcastAsUser(
|
||||||
|
new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS), UserHandle.CURRENT);
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -112,6 +112,9 @@ public class CarNavigationButton extends com.android.keyguard.AlphaOptimizedImag
|
|||||||
try {
|
try {
|
||||||
if (mBroadcastIntent) {
|
if (mBroadcastIntent) {
|
||||||
mContext.sendBroadcastAsUser(toSend, UserHandle.CURRENT);
|
mContext.sendBroadcastAsUser(toSend, UserHandle.CURRENT);
|
||||||
|
mContext.sendBroadcastAsUser(
|
||||||
|
new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS),
|
||||||
|
UserHandle.CURRENT);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mContext.startActivityAsUser(toSend, UserHandle.CURRENT);
|
mContext.startActivityAsUser(toSend, UserHandle.CURRENT);
|
||||||
|
|||||||
Reference in New Issue
Block a user