Merge "Check for lock icon nullability" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e0bbf0e387
@@ -262,23 +262,29 @@ public class StatusBarWindowView extends FrameLayout {
|
|||||||
* Propagate {@link StatusBar} pulsing state.
|
* Propagate {@link StatusBar} pulsing state.
|
||||||
*/
|
*/
|
||||||
public void setPulsing(boolean pulsing) {
|
public void setPulsing(boolean pulsing) {
|
||||||
|
if (mLockIcon != null) {
|
||||||
mLockIcon.setPulsing(pulsing);
|
mLockIcon.setPulsing(pulsing);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called when the biometric authentication mode changes.
|
* Called when the biometric authentication mode changes.
|
||||||
* @param wakeAndUnlock If the type is {@link BiometricUnlockController#isWakeAndUnlock()}
|
* @param wakeAndUnlock If the type is {@link BiometricUnlockController#isWakeAndUnlock()}
|
||||||
*/
|
*/
|
||||||
public void onBiometricAuthModeChanged(boolean wakeAndUnlock) {
|
public void onBiometricAuthModeChanged(boolean wakeAndUnlock) {
|
||||||
|
if (mLockIcon != null) {
|
||||||
mLockIcon.onBiometricAuthModeChanged(wakeAndUnlock);
|
mLockIcon.onBiometricAuthModeChanged(wakeAndUnlock);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called after finished unlocking and the status bar window is already collapsed.
|
* Called after finished unlocking and the status bar window is already collapsed.
|
||||||
*/
|
*/
|
||||||
public void onKeyguardFadedAway() {
|
public void onKeyguardFadedAway() {
|
||||||
|
if (mLockIcon != null) {
|
||||||
mLockIcon.onKeyguardFadedAway();
|
mLockIcon.onKeyguardFadedAway();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void setStatusBarView(PhoneStatusBarView statusBarView) {
|
public void setStatusBarView(PhoneStatusBarView statusBarView) {
|
||||||
mStatusBarView = statusBarView;
|
mStatusBarView = statusBarView;
|
||||||
|
|||||||
Reference in New Issue
Block a user