Skip to content

Commit

Permalink
[M3][Color] Updated content-based dynamic colors
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 532182583
  • Loading branch information
Material Design Team authored and imhappi committed May 16, 2023
1 parent b57dae5 commit a511501
Showing 1 changed file with 2 additions and 8 deletions.
Expand Up @@ -16,14 +16,12 @@

package com.google.android.material.color;

import static androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP;

import android.app.Activity;
import android.graphics.Bitmap;
import androidx.annotation.ColorInt;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.RestrictTo;
import androidx.annotation.StyleRes;
import com.google.android.material.color.DynamicColors.OnAppliedCallback;
import com.google.android.material.color.DynamicColors.Precondition;
Expand Down Expand Up @@ -127,13 +125,11 @@ public Builder setOnAppliedCallback(@NonNull OnAppliedCallback onAppliedCallback
}

/**
* Sets the content based source image to extract the seed color from to generate Material color
* palette. Calling this method will clear any source color previously set with
* Sets the content based source image from which to extract the seed color for the Material
* color palette. Calling this method will clear any source color previously set with
* #setContentBasedSource(int).
*
* @hide
*/
@RestrictTo(LIBRARY_GROUP)
@NonNull
@CanIgnoreReturnValue
public Builder setContentBasedSource(@NonNull Bitmap contentBasedSource) {
Expand All @@ -146,9 +142,7 @@ public Builder setContentBasedSource(@NonNull Bitmap contentBasedSource) {
* Sets the content based source color to generate Material color palette. Calling this method
* will clear any source bitmap previously set with #setContentBasedSource(Bitmap).
*
* @hide
*/
@RestrictTo(LIBRARY_GROUP)
@NonNull
@CanIgnoreReturnValue
public Builder setContentBasedSource(@ColorInt int contentBasedSource) {
Expand Down

0 comments on commit a511501

Please sign in to comment.