Loading policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +12 −12 Original line number Diff line number Diff line Loading @@ -2218,6 +2218,18 @@ public class PhoneWindowManager implements WindowManagerPolicy { mHandler.removeCallbacks(mBackLongPress); } // Specific device key handling if (mDeviceKeyHandler != null) { try { // The device only should consume known keys. if (mDeviceKeyHandler.handleKeyEvent(event)) { return -1; } } catch (Exception e) { Slog.w(TAG, "Could not dispatch event to device key handler", e); } } // First we always handle the home key here, so applications // can never break it, although if keyguard is on, we do let // it handle it, because that gives us the correct 5 second Loading Loading @@ -2550,18 +2562,6 @@ public class PhoneWindowManager implements WindowManagerPolicy { return -1; } // Specific device key handling if (mDeviceKeyHandler != null) { try { // The device only should consume known keys. if (mDeviceKeyHandler.handleKeyEvent(event)) { return -1; } } catch (Exception e) { Slog.w(TAG, "Could not dispatch event to device key handler", e); } } // Let the application handle the key. return 0; } Loading Loading
policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +12 −12 Original line number Diff line number Diff line Loading @@ -2218,6 +2218,18 @@ public class PhoneWindowManager implements WindowManagerPolicy { mHandler.removeCallbacks(mBackLongPress); } // Specific device key handling if (mDeviceKeyHandler != null) { try { // The device only should consume known keys. if (mDeviceKeyHandler.handleKeyEvent(event)) { return -1; } } catch (Exception e) { Slog.w(TAG, "Could not dispatch event to device key handler", e); } } // First we always handle the home key here, so applications // can never break it, although if keyguard is on, we do let // it handle it, because that gives us the correct 5 second Loading Loading @@ -2550,18 +2562,6 @@ public class PhoneWindowManager implements WindowManagerPolicy { return -1; } // Specific device key handling if (mDeviceKeyHandler != null) { try { // The device only should consume known keys. if (mDeviceKeyHandler.handleKeyEvent(event)) { return -1; } } catch (Exception e) { Slog.w(TAG, "Could not dispatch event to device key handler", e); } } // Let the application handle the key. return 0; } Loading