Skip to content

Commit

Permalink
Add support for multiple views for into().
Browse files Browse the repository at this point in the history
  • Loading branch information
musenkishi committed Jun 26, 2015
1 parent 0df4d65 commit 4e46e05
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/src/main/java/com/musenkishi/atelier/Atelier.java
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,13 @@ public AtelierBuilder listener(OnPaletteRenderedListener onPaletteRenderedListen
return this;
}

public void into(View view) {
public void into(View... views) {
for (View view : views) {
start(view);
}
}

private void start(View view) {
final PaletteTarget paletteTarget = new PaletteTarget(id, swatch, view, maskDrawable, fallbackColor, onPaletteRenderedListener);
if (palette != null) {
paletteCache.put(paletteTarget.getId(), palette);
Expand Down

0 comments on commit 4e46e05

Please sign in to comment.