commit | 01795cbead8254a6bb68b528130e411a8050150b | [log] [tgz] |
---|---|---|
author | ezio84 <brabus84@gmail.com> | Thu Sep 07 01:12:19 2017 +0200 |
committer | Jackeagle <jackeagle102@gmail.com> | Tue Jan 19 10:22:55 2021 +0100 |
tree | e8438ba7e89e2bfed5164b89c62556b96a016538 | |
parent | faed43580ef241ddf77f0a16cd0333f800104ad1 [diff] |
Color picker pref: allow tap also on the text to show the picker other prefs like SwitchPref work this way Signed-off-by: xyyx <xyyx@mail.ru> Change-Id: Iaf503c6844a6ad202ff6e534cfc613f0662bc7e2
diff --git a/src/com/bliss/support/colorpicker/ColorPickerPreference.java b/src/com/bliss/support/colorpicker/ColorPickerPreference.java index 01b0978..f8f97c8 100644 --- a/src/com/bliss/support/colorpicker/ColorPickerPreference.java +++ b/src/com/bliss/support/colorpicker/ColorPickerPreference.java
@@ -102,6 +102,13 @@ mView = view; super.onBindViewHolder(view); + view.itemView.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + showDialog(null); + } + }); + widgetFrameView = ((LinearLayout) view .findViewById(android.R.id.widget_frame));