Skip to content

Commit

Permalink
name consistency refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
musenkishi committed May 14, 2015
1 parent 7a000e6 commit 37fbc6d
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ public PaletteBuilder load(Bitmap bitmap) {
return this;
}

public PaletteBuilder load(Palette colorScheme) {
this.palette = colorScheme;
public PaletteBuilder load(Palette palette) {
this.palette = palette;
return this;
}

Expand Down Expand Up @@ -331,12 +331,12 @@ private PaletteRenderer(Bitmap bitmap, PaletteTarget paletteTarget) {
@Override
public void run() {
if (bitmap != null && !bitmap.isRecycled()) {
Palette colorScheme = Palette.generate(bitmap);
paletteCache.put(paletteTarget.getId(), colorScheme);
Palette palette = Palette.generate(bitmap);
paletteCache.put(paletteTarget.getId(), palette);

PalettePresenter palettePresenter = new PalettePresenter(
paletteTarget,
colorScheme,
palette,
false
);
uiHandler.post(palettePresenter);
Expand Down

0 comments on commit 37fbc6d

Please sign in to comment.