Merge "Protect against hiding while not attached"
This commit is contained in:
committed by
Android (Google) Code Review
commit
a83ebca651
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user