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

Commit ef187326 authored by Robin Lee's avatar Robin Lee
Browse files

Remove unused "occludesKeguard(WindowContainer)"

Bug: N/A
Test: N/A
Flag: EXEMPT cleaning up dead code
Change-Id: Idd49f713c4989ec170dd83d892b88ada55bda456
parent 2b5b206d
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
@@ -2627,22 +2627,6 @@ class Transition implements BLASTSyncEngine.TransactionReadyListener {
        return wc.getWindowType() == TYPE_INPUT_METHOD;
    }

    private static boolean occludesKeyguard(WindowContainer wc) {
        final ActivityRecord ar = wc.asActivityRecord();
        if (ar != null) {
            return ar.canShowWhenLocked();
        }
        final Task t = wc.asTask();
        if (t != null) {
            // Get the top activity which was visible (since this is going away, it will remain
            // client visible until the transition is finished).
            // skip hidden (or about to hide) apps
            final ActivityRecord top = t.getActivity(WindowToken::isClientVisible);
            return top != null && top.canShowWhenLocked();
        }
        return false;
    }

    private static boolean isTranslucent(@NonNull WindowContainer wc) {
        final TaskFragment taskFragment = wc.asTaskFragment();
        if (taskFragment == null) {