Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5be439e authored by Steve Kondik's avatar Steve Kondik
Browse files

Post 2.3.3 merge build fixes

Screen-off volume-key handling is currently broken.

Change-Id: I24248cebe922f97f2015415c1041b31a35998085
parent deb355dc
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1945,6 +1945,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
    void handleVolumeKeyDown(int keycode) {
        // when keyguard is showing and screen off, we need
        // to handle the volume key for calls and music here
	// FIXME FIXME FIXME
	/*
        if (isInCall()) {
            handleVolumeKey(AudioManager.STREAM_VOICE_CALL, keycode);
        }
@@ -1965,6 +1967,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                mHandler.postDelayed(btnHandler, ViewConfiguration.getLongPressTimeout());
            }
        }
	*/
    }

    void handleVolumeKeyUp(int keycode) {
@@ -2016,7 +2019,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {

        if (false) {
            Log.d(TAG, "interceptKeyTq keycode=" + keyCode
                  + " screenIsOn=" + isScreenOn + " keyguardActive=" + keyguardActive + " isWakeKey=" + isWakeKey);
                  + " screenIsOn=" + isScreenOn + " keyguardActive=" + keyguardActive);
        }

        if (down && (policyFlags & WindowManagerPolicy.FLAG_VIRTUAL) != 0) {
+0 −5
Original line number Diff line number Diff line
@@ -497,9 +497,4 @@ public class MockPackageManager extends PackageManager {
    public List<PackageInfo> getInstalledThemePackages() {
        throw new UnsupportedOperationException();
    }

    @Override
    public void setPackageObbPath(String packageName, String path) {
        throw new UnsupportedOperationException();
    }
}