aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/CustomView/ColorPickerDialog.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/CustomView/ColorPickerDialog.java b/app/src/main/java/ml/docilealligator/infinityforreddit/CustomView/ColorPickerDialog.java
index a60a38da..ff3f9423 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/CustomView/ColorPickerDialog.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/CustomView/ColorPickerDialog.java
@@ -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));