Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26030b9e authored by Grace Cheng's avatar Grace Cheng
Browse files

Add null check in AuthBiometricView#onConfigurationChange

Add null check for retrieving saved state on configuration changes

Test: (manual) do repro steps on bug, verify no crash
Fixes: 271527985
Change-Id: I43630549e5d4fa49b8a9e5c1bc8c8b1c067ee2af
parent 05356e1d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -658,8 +658,10 @@ public abstract class AuthBiometricView extends LinearLayout {
    protected void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
        mIconController.onConfigurationChanged(newConfig);
        if (mSavedState != null) {
            updateState(mSavedState.getInt(AuthDialog.KEY_BIOMETRIC_STATE));
        }
    }

    @Override
    protected void onFinishInflate() {