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

Commit 3142705c authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

Merge "Remove override prepareSurfaces of Task" into main

parents 4c76ce48 68ed2609
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -3366,16 +3366,6 @@ class Task extends TaskFragment {
        return inMultiWindowMode() || !isTranslucentAndVisible();
    }

    @Override
    void prepareSurfaces() {
        mDimmer.resetDimStates();
        super.prepareSurfaces();

        if (mDimmer.hasDimState() && mDimmer.updateDims(getSyncTransaction())) {
            scheduleAnimation();
        }
    }

    @Override
    void updateSurfaceVisibility(SurfaceControl.Transaction t) {
        t.setVisibility(mSurfaceControl, isVisible());
+1 −6
Original line number Diff line number Diff line
@@ -3389,15 +3389,10 @@ class TaskFragment extends WindowContainer<WindowContainer> {

    @Override
    void prepareSurfaces() {
        if (asTask() != null) {
            super.prepareSurfaces();
            return;
        }

        mDimmer.resetDimStates();
        super.prepareSurfaces();

        if (mDimmer.updateDims(getSyncTransaction())) {
        if (mDimmer.hasDimState() && mDimmer.updateDims(getSyncTransaction())) {
            scheduleAnimation();
        }
    }