Fix NPE when there's no forgot password button.
Test: manual Bug: 149887743 Change-Id: If2238aec2e618f617b7459b819303c03f009941a
This commit is contained in:
@@ -267,7 +267,9 @@ public class ConfirmLockPassword extends ConfirmDeviceCredentialBaseActivity {
|
||||
mHeaderTextView.setAlpha(0f);
|
||||
mDetailsTextView.setAlpha(0f);
|
||||
mCancelButton.setAlpha(0f);
|
||||
mForgotButton.setAlpha(0f);
|
||||
if (mForgotButton != null) {
|
||||
mForgotButton.setAlpha(0f);
|
||||
}
|
||||
mPasswordEntry.setAlpha(0f);
|
||||
mErrorTextView.setAlpha(0f);
|
||||
}
|
||||
@@ -279,7 +281,7 @@ public class ConfirmLockPassword extends ConfirmDeviceCredentialBaseActivity {
|
||||
if (mCancelButton.getVisibility() == View.VISIBLE) {
|
||||
result.add(mCancelButton);
|
||||
}
|
||||
if (mForgotButton.getVisibility() == View.VISIBLE) {
|
||||
if (mForgotButton != null) {
|
||||
result.add(mForgotButton);
|
||||
}
|
||||
result.add(mPasswordEntry);
|
||||
|
Reference in New Issue
Block a user