Projects >> android-frameworks-base-with-screenshot-tweaks >>ea5ea98eb1fcb5a12a162ea0021dd6b56db5e0be

Chunk
Conflicting content
                                || (gohome && !goHome() && sleeps)) {
                    mHandler.removeCallbacks(mPowerLongPress);
                    if (mShouldTurnOffOnKeyUp) {
                        mShouldTurnOffOnKeyUp = false;
<<<<<<< HEAD
                        boolean gohome, sleeps;
                        if (code == KeyEvent.KEYCODE_ENDCALL) {
                            gohome = (mEndcallBehavior & ENDCALL_HOME) != 0;
                            sleeps = (mEndcallBehavior & ENDCALL_SLEEPS) != 0;
                        } else {
                            gohome = false;
                            sleeps = true;
                        }
                        if (keyguardShowing
=======
                        boolean gohome = (mEndcallBehavior & ENDCALL_HOME) != 0;
                        boolean sleeps = (mEndcallBehavior & ENDCALL_SLEEPS) != 0;
                        if (keyguardActive
>>>>>>> c72b15f2ee751e7cb747e0b53ddecc9da69c9e0c
                            // they must already be on the keyguad or home screen,
                                || (sleeps && !gohome)
Solution content
                    mHandler.removeCallbacks(mPowerLongPress);
                    if (mShouldTurnOffOnKeyUp) {
                        mShouldTurnOffOnKeyUp = false;
                        boolean gohome, sleeps;
                        if (code == KeyEvent.KEYCODE_ENDCALL) {
                            gohome = (mEndcallBehavior & ENDCALL_HOME) != 0;
                            sleeps = (mEndcallBehavior & ENDCALL_SLEEPS) != 0;
                        } else {
                            gohome = false;
                            sleeps = true;
                        }
                        if (keyguardActive
                                || (sleeps && !gohome)
                                || (gohome && !goHome() && sleeps)) {
                            // they must already be on the keyguad or home screen,
File
PhoneWindowManager.java
Developer's decision
Combination
Kind of conflict
Attribute
If statement
Variable