Loading policy/com/android/internal/policy/impl/GlobalActions.java +4 −2 Original line number Diff line number Diff line Loading @@ -80,6 +80,7 @@ class GlobalActions implements DialogInterface.OnDismissListener, DialogInterfac // receive broadcasts IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_CLOSE_SYSTEM_DIALOGS); filter.addAction(Intent.ACTION_SCREEN_OFF); context.registerReceiver(mBroadcastReceiver, filter); // get notified of phone state changes Loading Loading @@ -483,7 +484,8 @@ class GlobalActions implements DialogInterface.OnDismissListener, DialogInterfac private BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (Intent.ACTION_CLOSE_SYSTEM_DIALOGS.equals(action)) { if (Intent.ACTION_CLOSE_SYSTEM_DIALOGS.equals(action) || Intent.ACTION_SCREEN_OFF.equals(action)) { String reason = intent.getStringExtra(PhoneWindowManager.SYSTEM_DIALOG_REASON_KEY); if (!PhoneWindowManager.SYSTEM_DIALOG_REASON_GLOBAL_ACTIONS.equals(reason)) { mHandler.sendEmptyMessage(MESSAGE_DISMISS); Loading policy/com/android/internal/policy/impl/KeyguardViewMediator.java +0 −1 Original line number Diff line number Diff line Loading @@ -857,7 +857,6 @@ public class KeyguardViewMediator implements KeyguardViewCallback, // manager not to honor request for userActivity. mRealPowerManager.enableUserActivity(false); mCallback.onKeyguardShow(); mKeyguardViewManager.show(); mShowing = true; } Loading policy/com/android/internal/policy/impl/PhoneWindow.java +1 −0 Original line number Diff line number Diff line Loading @@ -2510,6 +2510,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { if (cb == null) { return false; } else { sendCloseSystemWindows("search"); return cb.onSearchRequested(); } } Loading policy/com/android/internal/policy/impl/PhoneWindowManager.java +0 −7 Original line number Diff line number Diff line Loading @@ -1690,13 +1690,6 @@ public class PhoneWindowManager implements WindowManagerPolicy { return mKeyguardMediator.isInputRestricted(); } /** * Callback from {@link KeyguardViewMediator} */ public void onKeyguardShow() { sendCloseSystemWindows(); } void sendCloseSystemWindows() { sendCloseSystemWindows(mContext, null); } Loading Loading
policy/com/android/internal/policy/impl/GlobalActions.java +4 −2 Original line number Diff line number Diff line Loading @@ -80,6 +80,7 @@ class GlobalActions implements DialogInterface.OnDismissListener, DialogInterfac // receive broadcasts IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_CLOSE_SYSTEM_DIALOGS); filter.addAction(Intent.ACTION_SCREEN_OFF); context.registerReceiver(mBroadcastReceiver, filter); // get notified of phone state changes Loading Loading @@ -483,7 +484,8 @@ class GlobalActions implements DialogInterface.OnDismissListener, DialogInterfac private BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (Intent.ACTION_CLOSE_SYSTEM_DIALOGS.equals(action)) { if (Intent.ACTION_CLOSE_SYSTEM_DIALOGS.equals(action) || Intent.ACTION_SCREEN_OFF.equals(action)) { String reason = intent.getStringExtra(PhoneWindowManager.SYSTEM_DIALOG_REASON_KEY); if (!PhoneWindowManager.SYSTEM_DIALOG_REASON_GLOBAL_ACTIONS.equals(reason)) { mHandler.sendEmptyMessage(MESSAGE_DISMISS); Loading
policy/com/android/internal/policy/impl/KeyguardViewMediator.java +0 −1 Original line number Diff line number Diff line Loading @@ -857,7 +857,6 @@ public class KeyguardViewMediator implements KeyguardViewCallback, // manager not to honor request for userActivity. mRealPowerManager.enableUserActivity(false); mCallback.onKeyguardShow(); mKeyguardViewManager.show(); mShowing = true; } Loading
policy/com/android/internal/policy/impl/PhoneWindow.java +1 −0 Original line number Diff line number Diff line Loading @@ -2510,6 +2510,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { if (cb == null) { return false; } else { sendCloseSystemWindows("search"); return cb.onSearchRequested(); } } Loading
policy/com/android/internal/policy/impl/PhoneWindowManager.java +0 −7 Original line number Diff line number Diff line Loading @@ -1690,13 +1690,6 @@ public class PhoneWindowManager implements WindowManagerPolicy { return mKeyguardMediator.isInputRestricted(); } /** * Callback from {@link KeyguardViewMediator} */ public void onKeyguardShow() { sendCloseSystemWindows(); } void sendCloseSystemWindows() { sendCloseSystemWindows(mContext, null); } Loading