diff options
Diffstat (limited to 'java/com/android/newbubble/NewCheckableButton.java')
-rw-r--r-- | java/com/android/newbubble/NewCheckableButton.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/java/com/android/newbubble/NewCheckableButton.java b/java/com/android/newbubble/NewCheckableButton.java index 8e43335ca..15858d39e 100644 --- a/java/com/android/newbubble/NewCheckableButton.java +++ b/java/com/android/newbubble/NewCheckableButton.java @@ -33,7 +33,7 @@ import android.widget.Checkable; */ public class NewCheckableButton extends AppCompatButton implements Checkable { - private boolean mChecked; + private boolean checked; public NewCheckableButton(Context context) { this(context, null); @@ -67,8 +67,8 @@ public class NewCheckableButton extends AppCompatButton implements Checkable { @Override public void setChecked(boolean checked) { - if (mChecked != checked) { - mChecked = checked; + if (this.checked != checked) { + this.checked = checked; int newColor = checked ? getContext().getColor(R.color.bubble_button_color_blue) @@ -80,11 +80,11 @@ public class NewCheckableButton extends AppCompatButton implements Checkable { @Override public boolean isChecked() { - return mChecked; + return checked; } @Override public void toggle() { - setChecked(!mChecked); + setChecked(!checked); } } |