Merge "Add a null check to prevent NPE when status bar isn't inflated" into udc-dev
This commit is contained in:
@@ -205,8 +205,11 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis
|
|||||||
// TODO move this logic to message queue
|
// TODO move this logic to message queue
|
||||||
mCentralSurfacesOptionalLazy.get().ifPresent(centralSurfaces -> {
|
mCentralSurfacesOptionalLazy.get().ifPresent(centralSurfaces -> {
|
||||||
if (event.getActionMasked() == ACTION_DOWN) {
|
if (event.getActionMasked() == ACTION_DOWN) {
|
||||||
centralSurfaces.getShadeViewController()
|
ShadeViewController shadeViewController =
|
||||||
.startExpandLatencyTracking();
|
centralSurfaces.getShadeViewController();
|
||||||
|
if (shadeViewController != null) {
|
||||||
|
shadeViewController.startExpandLatencyTracking();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
mHandler.post(() -> {
|
mHandler.post(() -> {
|
||||||
int action = event.getActionMasked();
|
int action = event.getActionMasked();
|
||||||
|
|||||||
Reference in New Issue
Block a user