mirror of
https://github.com/Docile-Alligator/Infinity-For-Reddit.git
synced 2026-03-04 14:57:25 +00:00
Fix colorview doesn't change its background color after changing color value.
This commit is contained in:
@ -64,6 +64,7 @@ public class ColorPickerDialog extends AlertDialog {
|
||||
try {
|
||||
changeColorValueEditText = false;
|
||||
colorValue = Color.parseColor("#" + s);
|
||||
colorView.setBackgroundColor(colorValue);
|
||||
seekBarA.setProgress(255);
|
||||
seekBarR.setProgress(Integer.parseInt(s.substring(0, 2), 16));
|
||||
seekBarG.setProgress(Integer.parseInt(s.substring(2, 4), 16));
|
||||
@ -76,6 +77,7 @@ public class ColorPickerDialog extends AlertDialog {
|
||||
try {
|
||||
changeColorValueEditText = false;
|
||||
colorValue = Color.parseColor("#" + s);
|
||||
colorView.setBackgroundColor(colorValue);
|
||||
seekBarA.setProgress(Integer.parseInt(s.substring(0, 2), 16));
|
||||
seekBarR.setProgress(Integer.parseInt(s.substring(2, 4), 16));
|
||||
seekBarG.setProgress(Integer.parseInt(s.substring(4, 6), 16));
|
||||
|
||||
Reference in New Issue
Block a user