Merge "Report negative proximity if we lose the prox sensor" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
257efc5ad5
@@ -1372,8 +1372,17 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
|
|||||||
sendOnProximityNegativeWithWakelock();
|
sendOnProximityNegativeWithWakelock();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
setProximitySensorEnabled(false);
|
||||||
mWaitingForNegativeProximity = false;
|
mWaitingForNegativeProximity = false;
|
||||||
mIgnoreProximityUntilChanged = false;
|
mIgnoreProximityUntilChanged = false;
|
||||||
|
|
||||||
|
if (mScreenOffBecauseOfProximity) {
|
||||||
|
// The screen *was* off due to prox being near, but now there's no prox sensor, so
|
||||||
|
// let's turn the screen back on.
|
||||||
|
mScreenOffBecauseOfProximity = false;
|
||||||
|
skipRampBecauseOfProximityChangeToNegative = true;
|
||||||
|
sendOnProximityNegativeWithWakelock();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!mIsEnabled
|
if (!mIsEnabled
|
||||||
|
|||||||
Reference in New Issue
Block a user