Remove unwanted timeout fallback to Legacy GA
When Provider dies, remove timer callback to avoid secondary timeout fallback to Legacy GA that was leading to the dialog box blinking. Bug: 272173191 Test: manual Change-Id: Ie8d8dda855324a49c6b03e8d5f382f8d911050ba Signed-off-by: Fabio Iannaccone <fabio.iannaccone@technicolor.com>
This commit is contained in:
@@ -93,7 +93,8 @@ class GlobalActions implements GlobalActionsProvider.GlobalActionsListener {
|
||||
mGlobalActionsAvailable = available;
|
||||
if (mShowing && !mGlobalActionsAvailable) {
|
||||
// Global actions provider died but we need to be showing global actions still, show the
|
||||
// legacy global acrions provider.
|
||||
// legacy global actions provider and remove timeout callbacks to avoid legacy re-show.
|
||||
mHandler.removeCallbacks(mShowTimeout);
|
||||
ensureLegacyCreated();
|
||||
mLegacyGlobalActions.showDialog(mKeyguardShowing, mDeviceProvisioned);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user