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

Commit 43df5b95 authored by Joe Bolinger's avatar Joe Bolinger
Browse files

Execute hide overlay immediatly.

Address race conditions during configuration changes.

Fix: 192552884
Test: manual (rotate device while using udfps device)
Change-Id: I715e0e53b2e972f06c03ac2e637a3e259643b1a3
parent bae80e0d
Loading
Loading
Loading
Loading
+17 −16
Original line number Diff line number Diff line
@@ -663,6 +663,7 @@ public class UdfpsController implements DozeReceiver {

    private void showUdfpsOverlay(@NonNull ServerRequest request) {
        mExecution.assertIsMainThread();

        final int reason = request.mRequestReason;
        if (mView == null) {
            try {
@@ -751,7 +752,8 @@ public class UdfpsController implements DozeReceiver {
    }

    private void hideUdfpsOverlay() {
        mFgExecutor.execute(() -> {
        mExecution.assertIsMainThread();

        if (mView != null) {
            Log.v(TAG, "hideUdfpsOverlay | removing window");
            // Reset the controller back to its starting state.
@@ -766,7 +768,6 @@ public class UdfpsController implements DozeReceiver {
        } else {
            Log.v(TAG, "hideUdfpsOverlay | the overlay is already hidden");
        }
        });
    }

    /**