Skip to content

Commit

Permalink
[Carousel] Updated setForceCompatClipping visibility for testing.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 516584087
  • Loading branch information
hunterstich authored and paulfthomas committed Mar 14, 2023
1 parent 733c9e0 commit 3856af1
Showing 1 changed file with 10 additions and 1 deletion.
Expand Up @@ -34,6 +34,8 @@
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;
import androidx.annotation.RestrictTo;
import androidx.annotation.RestrictTo.Scope;
import androidx.annotation.VisibleForTesting;
import androidx.core.math.MathUtils;
import com.google.android.material.animation.AnimationUtils;
Expand Down Expand Up @@ -158,8 +160,15 @@ private void onMaskChanged() {
}
}


/**
* Set whether this view should always use canvas clipping to clip to its masked shape.
*
* @hide
*/
@VisibleForTesting
void setForceCompatClipping(boolean forceCompatClipping) {
@RestrictTo(Scope.LIBRARY_GROUP)
public void setForceCompatClipping(boolean forceCompatClipping) {
maskableDelegate.setForceCompatClippingEnabled(this, forceCompatClipping);
}

Expand Down

0 comments on commit 3856af1

Please sign in to comment.