Loading policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +12 −12 Original line number Original line Diff line number Diff line Loading @@ -2272,18 +2272,6 @@ public class PhoneWindowManager implements WindowManagerPolicy { mHandler.removeCallbacks(mBackLongPress); 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 // First we always handle the home key here, so applications // can never break it, although if keyguard is on, we do let // can never break it, although if keyguard is on, we do let // it handle it, because that gives us the correct 5 second // it handle it, because that gives us the correct 5 second Loading Loading @@ -4189,6 +4177,18 @@ public class PhoneWindowManager implements WindowManagerPolicy { return result; return result; } } // Specific device key handling if (mDeviceKeyHandler != null) { try { // The device only should consume known keys. if (mDeviceKeyHandler.handleKeyEvent(event)) { return 0; } } catch (Exception e) { Slog.w(TAG, "Could not dispatch event to device key handler", e); } } // Handle special keys. // Handle special keys. switch (keyCode) { switch (keyCode) { case KeyEvent.KEYCODE_ENDCALL: { case KeyEvent.KEYCODE_ENDCALL: { Loading Loading
policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +12 −12 Original line number Original line Diff line number Diff line Loading @@ -2272,18 +2272,6 @@ public class PhoneWindowManager implements WindowManagerPolicy { mHandler.removeCallbacks(mBackLongPress); 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 // First we always handle the home key here, so applications // can never break it, although if keyguard is on, we do let // can never break it, although if keyguard is on, we do let // it handle it, because that gives us the correct 5 second // it handle it, because that gives us the correct 5 second Loading Loading @@ -4189,6 +4177,18 @@ public class PhoneWindowManager implements WindowManagerPolicy { return result; return result; } } // Specific device key handling if (mDeviceKeyHandler != null) { try { // The device only should consume known keys. if (mDeviceKeyHandler.handleKeyEvent(event)) { return 0; } } catch (Exception e) { Slog.w(TAG, "Could not dispatch event to device key handler", e); } } // Handle special keys. // Handle special keys. switch (keyCode) { switch (keyCode) { case KeyEvent.KEYCODE_ENDCALL: { case KeyEvent.KEYCODE_ENDCALL: { Loading