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

Commit c44c77d3 authored by Alan Viverette's avatar Alan Viverette Committed by Android (Google) Code Review
Browse files

Merge "Implement missing visibility management for FrameLayout foreground" into lmp-dev

parents ffa16f94 3be5e0e6
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ import android.graphics.Region;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.RemotableViewMethod;
import android.view.View;
import android.view.ViewDebug;
import android.view.ViewGroup;
@@ -201,6 +202,15 @@ public class FrameLayout extends ViewGroup {
        }
    }

    @Override
    @RemotableViewMethod
    public void setVisibility(@Visibility int visibility) {
        super.setVisibility(visibility);
        if (mForeground != null) {
            mForeground.setVisible(visibility == VISIBLE, false);
        }
    }

    /**
     * {@inheritDoc}
     */