Merge "Not bypassing when the user is expanding quick settings" into qt-r1-dev
This commit is contained in:
@@ -49,6 +49,14 @@ class KeyguardBypassController {
|
|||||||
private set
|
private set
|
||||||
|
|
||||||
var bouncerShowing: Boolean = false
|
var bouncerShowing: Boolean = false
|
||||||
|
var qSExpanded = false
|
||||||
|
set(value) {
|
||||||
|
val changed = field != value
|
||||||
|
field = value
|
||||||
|
if (changed && !value) {
|
||||||
|
maybePerformPendingUnlock()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
constructor(context: Context, tunerService: TunerService,
|
constructor(context: Context, tunerService: TunerService,
|
||||||
@@ -98,7 +106,7 @@ class KeyguardBypassController {
|
|||||||
// to unlock
|
// to unlock
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (isPulseExpanding) {
|
if (isPulseExpanding || qSExpanded) {
|
||||||
pendingUnlockType = biometricSourceType
|
pendingUnlockType = biometricSourceType
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1387,6 +1387,7 @@ public class NotificationPanelView extends PanelView implements
|
|||||||
mStatusBar.setQsExpanded(expanded);
|
mStatusBar.setQsExpanded(expanded);
|
||||||
mNotificationContainerParent.setQsExpanded(expanded);
|
mNotificationContainerParent.setQsExpanded(expanded);
|
||||||
mPulseExpansionHandler.setQsExpanded(expanded);
|
mPulseExpansionHandler.setQsExpanded(expanded);
|
||||||
|
mKeyguardBypassController.setQSExpanded(expanded);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user