Skip to content

Commit e9b485d

Browse files
Material Design Teamdsn5ft
authored andcommitted
[M3][Color] Updated content-based dynamic colors
PiperOrigin-RevId: 532182583 (cherry picked from commit a511501)
1 parent 46778db commit e9b485d

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

lib/java/com/google/android/material/color/DynamicColorsOptions.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@
1616

1717
package com.google.android.material.color;
1818

19-
import static androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP;
2019

2120
import android.app.Activity;
2221
import android.graphics.Bitmap;
2322
import androidx.annotation.ColorInt;
2423
import androidx.annotation.NonNull;
2524
import androidx.annotation.Nullable;
26-
import androidx.annotation.RestrictTo;
2725
import androidx.annotation.StyleRes;
2826
import com.google.android.material.color.DynamicColors.OnAppliedCallback;
2927
import com.google.android.material.color.DynamicColors.Precondition;
@@ -127,13 +125,11 @@ public Builder setOnAppliedCallback(@NonNull OnAppliedCallback onAppliedCallback
127125
}
128126

129127
/**
130-
* Sets the content based source image to extract the seed color from to generate Material color
131-
* palette. Calling this method will clear any source color previously set with
128+
* Sets the content based source image from which to extract the seed color for the Material
129+
* color palette. Calling this method will clear any source color previously set with
132130
* #setContentBasedSource(int).
133131
*
134-
* @hide
135132
*/
136-
@RestrictTo(LIBRARY_GROUP)
137133
@NonNull
138134
@CanIgnoreReturnValue
139135
public Builder setContentBasedSource(@NonNull Bitmap contentBasedSource) {
@@ -146,9 +142,7 @@ public Builder setContentBasedSource(@NonNull Bitmap contentBasedSource) {
146142
* Sets the content based source color to generate Material color palette. Calling this method
147143
* will clear any source bitmap previously set with #setContentBasedSource(Bitmap).
148144
*
149-
* @hide
150145
*/
151-
@RestrictTo(LIBRARY_GROUP)
152146
@NonNull
153147
@CanIgnoreReturnValue
154148
public Builder setContentBasedSource(@ColorInt int contentBasedSource) {

0 commit comments

Comments
 (0)