Skip to content

Commit c714328

Browse files
imhappipaulfthomas
authored andcommitted
[Carousel] Remove library group restriction on Uncontained strategy
Resolves #4218 PiperOrigin-RevId: 650441233
1 parent 3fbb198 commit c714328

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

lib/java/com/google/android/material/carousel/UncontainedCarouselStrategy.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,14 @@
2424
import androidx.recyclerview.widget.RecyclerView.LayoutParams;
2525
import android.view.View;
2626
import androidx.annotation.NonNull;
27-
import androidx.annotation.RestrictTo;
28-
import androidx.annotation.RestrictTo.Scope;
2927

3028
/**
3129
* A {@link CarouselStrategy} that does not resize the original item width and fits as many as it
3230
* can into the container, cutting off the rest. Cut off items may be resized in order to show an
3331
* effect of items getting smaller at the ends.
3432
*
35-
* Note that this strategy does not adjust the size of large items. Item widths are taken
36-
* from the {@link androidx.recyclerview.widget.RecyclerView} item width.
33+
* <p>Note that this strategy does not adjust the size of large items. Item widths are taken from
34+
* the {@link androidx.recyclerview.widget.RecyclerView} item width.
3735
*
3836
* <p>This class will automatically be reversed by {@link CarouselLayoutManager} if being laid out
3937
* right-to-left and does not need to make any account for layout direction itself.
@@ -47,10 +45,6 @@ public final class UncontainedCarouselStrategy extends CarouselStrategy {
4745

4846
private static final float MEDIUM_LARGE_ITEM_PERCENTAGE_THRESHOLD = 0.85F;
4947

50-
@RestrictTo(Scope.LIBRARY_GROUP)
51-
public UncontainedCarouselStrategy() {
52-
}
53-
5448
@Override
5549
@NonNull
5650
KeylineState onFirstChildMeasuredWithMargins(@NonNull Carousel carousel, @NonNull View child) {

0 commit comments

Comments
 (0)