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

Commit 2c478a02 authored by Wei Sheng Shih's avatar Wei Sheng Shih Committed by Android (Google) Code Review
Browse files

Merge "Remove ActivityRecord mDeferHidingClient since shell transition enabled" into main

parents 3419c230 c2bf0cc7
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -454,6 +454,17 @@ flag {
    bug: "376407910"
}

flag {
    name: "remove_defer_hiding_client"
    namespace: "windowing_frontend"
    description: "Remove mDeferHidingClient since everything is in shell-transition."
    is_fixed_read_only: true
    bug: "382485959"
    metadata {
        purpose: PURPOSE_BUGFIX
    }
}

flag {
  name: "relative_insets"
  namespace: "windowing_frontend"
+11 −3
Original line number Diff line number Diff line
@@ -5408,10 +5408,16 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
    }

    void setDeferHidingClient() {
        if (Flags.removeDeferHidingClient()) {
            return;
        }
        mDeferHidingClient = true;
    }

    void clearDeferHidingClient() {
        if (Flags.removeDeferHidingClient()) {
            return;
        }
        if (!mDeferHidingClient) return;
        mDeferHidingClient = false;
        if (!mVisibleRequested) {
@@ -7141,9 +7147,11 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A

    @Override
    void setClientVisible(boolean clientVisible) {
        // TODO(shell-transitions): Remove mDeferHidingClient once everything is shell-transitions.
        //                          pip activities should just remain in clientVisible.
        if (!Flags.removeDeferHidingClient()) {
            // TODO(shell-transitions): Remove mDeferHidingClient once everything is
            //  shell-transitions. pip activities should just remain in clientVisible.
            if (!clientVisible && mDeferHidingClient) return;
        }
        super.setClientVisible(clientVisible);
    }