Skip to content

Commit

Permalink
fix the bug of applying the selected color twice
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammedRefaat committed Nov 6, 2019
1 parent 25f426d commit 833bae4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public void onClick(View v) {
try {
String selectedColor = v.getTag().toString().trim();
selectColor(selectedColor);
setSelectedColor(Color.parseColor(selectedColor));
this.selectedColor = Color.parseColor(selectedColor);
mListener.onColorSelected(selectedColor);
} catch (Exception ex) {
ex.printStackTrace();
Expand Down

0 comments on commit 833bae4

Please sign in to comment.