aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/ml/docilealligator/infinityforreddit
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-04-04 10:55:23 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-04-04 10:55:23 +0000
commit354298a6edbf0f0ad0273bc615713e2f7594d7c2 (patch)
tree96c00e54486ede689465307c753aada8517923b9 /app/src/main/java/ml/docilealligator/infinityforreddit
parent420e9518bc1e4bd8bc0b623425b04ed90c68eb91 (diff)
downloadinfinity-for-reddit-354298a6edbf0f0ad0273bc615713e2f7594d7c2.tar
infinity-for-reddit-354298a6edbf0f0ad0273bc615713e2f7594d7c2.tar.gz
infinity-for-reddit-354298a6edbf0f0ad0273bc615713e2f7594d7c2.tar.bz2
infinity-for-reddit-354298a6edbf0f0ad0273bc615713e2f7594d7c2.tar.lz
infinity-for-reddit-354298a6edbf0f0ad0273bc615713e2f7594d7c2.tar.xz
infinity-for-reddit-354298a6edbf0f0ad0273bc615713e2f7594d7c2.tar.zst
infinity-for-reddit-354298a6edbf0f0ad0273bc615713e2f7594d7c2.zip
Fix colorview doesn't change its background color after changing color value.
Diffstat (limited to 'app/src/main/java/ml/docilealligator/infinityforreddit')
-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));