1616
1717package com .google .android .material .color ;
1818
19- import static androidx .annotation .RestrictTo .Scope .LIBRARY_GROUP ;
2019
2120import android .app .Activity ;
2221import android .graphics .Bitmap ;
2322import androidx .annotation .ColorInt ;
2423import androidx .annotation .NonNull ;
2524import androidx .annotation .Nullable ;
26- import androidx .annotation .RestrictTo ;
2725import androidx .annotation .StyleRes ;
2826import com .google .android .material .color .DynamicColors .OnAppliedCallback ;
2927import 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