Merge "Protect against hiding while not attached"

This commit is contained in:
TreeHugger Robot
2017-03-17 15:27:44 +00:00
committed by Android (Google) Code Review

View File

@@ -228,6 +228,7 @@ public class QSCustomizer extends LinearLayout implements OnMenuItemClickListene
}
private final Callback mKeyguardCallback = () -> {
if (!isAttachedToWindow()) return;
if (Dependency.get(KeyguardMonitor.class).isShowing() && !mOpening) {
hide(0, 0);
}