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

Commit 3c4dd649 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Show work unlock prompt on focus as well as touch"

parents 0d21efdc ad0118a3
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
@@ -100,11 +100,19 @@ public class WorkLockActivity extends Activity {
        final View blankView = new View(this);
        blankView.setBackgroundColor(color);
        setContentView(blankView);
    }

        // Respond to input events by showing the prompt to confirm credentials.
        blankView.setOnClickListener((View v) -> {
    /**
     * Respond to focus events by showing the prompt to confirm credentials.
     * <p>
     * We don't have anything particularly interesting to show here (just a solid-colored page) so
     * there is no sense in sitting in the foreground doing nothing.
     */
    @Override
    public void onWindowFocusChanged(boolean hasFocus) {
        if (hasFocus) {
            showConfirmCredentialActivity();
        });
        }
    }

    @Override