fixed color change bug
This commit is contained in:
parent
42a19f092d
commit
82d4195dd2
|
|
@ -36,6 +36,7 @@ public class BtnOnClickListener implements View.OnClickListener{
|
||||||
break;
|
break;
|
||||||
case DICE_BUTTON:
|
case DICE_BUTTON:
|
||||||
intent = new Intent(v.getContext(), DiceActivity.class);
|
intent = new Intent(v.getContext(), DiceActivity.class);
|
||||||
|
break;
|
||||||
case BACKGROUND_BUTTON:
|
case BACKGROUND_BUTTON:
|
||||||
Random rand = new Random();
|
Random rand = new Random();
|
||||||
backgroundColor = String.format("#%06x", rand.nextInt(0xffffff + 1));
|
backgroundColor = String.format("#%06x", rand.nextInt(0xffffff + 1));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue