mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-11-07 11:17:25 +01:00
Fix colorview doesn't change its background color after changing color value.
This commit is contained in:
parent
420e9518bc
commit
354298a6ed
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user