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

Commit 3322de80 authored by Kevin Chyn's avatar Kevin Chyn
Browse files

Do not setListener(null) onViewDetached

There's currently a race condition upon orientation changes that
causes the new view to be attached before the old view is detached.
This results in a null listener.

Fixes: 193056436
Test: Start enroll, rotate, continue enroll
Change-Id: Id6c93dc9ee847aed0fb4a7eefbb7690a5c972781
parent 73ffe99b
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -71,12 +71,6 @@ public class UdfpsEnrollViewController extends UdfpsAnimationViewController<Udfp
        }
    }

    @Override
    protected void onViewDetached() {
        super.onViewDetached();
        mEnrollHelper.setListener(null);
    }

    @NonNull
    @Override
    public PointF getTouchTranslation() {