Color Picker: Remove OnClick listener to fix disabling
With this in play, the actual color picker circle does not get disabled
when the preference gets disabled by either a dependency or on its own.
This commit fixes this and allows for the color picker circle to perform
as it should.
Change-Id: If45903afb8bddfe7027b344c58038d16ead98064
diff --git a/src/com/bliss/support/colorpicker/ColorPickerPreference.java b/src/com/bliss/support/colorpicker/ColorPickerPreference.java
index aaef939..879c887 100644
--- a/src/com/bliss/support/colorpicker/ColorPickerPreference.java
+++ b/src/com/bliss/support/colorpicker/ColorPickerPreference.java
@@ -53,7 +53,7 @@
private int mValue = Color.BLACK;
private float mDensity = 0;
private boolean mAlphaSliderEnabled = false;
- private boolean mEnabled = true;
+ //private boolean mEnabled = true;
// if we return -6, button is not enabled
static final String SETTINGS_NS = "http://schemas.android.com/apk/res/com.android.settings";
@@ -210,7 +210,7 @@
(mValue - 0x101010) : mValue;
iView.setImageDrawable(createOvalShape(size, 0xFF000000 + imageColor));
iView.setTag("preview");
- iView.setOnClickListener(new View.OnClickListener() {
+ /*iView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (mEnabled) {
@@ -225,7 +225,7 @@
super.setEnabled(enabled);
if (mEnabled != enabled) {
mEnabled = enabled;
- }
+ }*/
}
@Override