We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9c58994 + 0e3ca3e commit 6754ce1Copy full SHA for 6754ce1
app/src/main/java/fr/free/nrw/commons/notification/NotificationRenderer.java
@@ -1,6 +1,7 @@
1
package fr.free.nrw.commons.notification;
2
3
import android.graphics.Color;
4
+import android.preference.PreferenceManager;
5
import android.text.Html;
6
import android.text.SpannableString;
7
import android.text.Spanned;
@@ -77,7 +78,13 @@ public void onClick(View view) {
77
78
public void updateDrawState(TextPaint ds) {
79
super.updateDrawState(ds);
80
ds.setUnderlineText(false);
- ds.setColor(Color.BLACK);
81
+
82
+ if(PreferenceManager.getDefaultSharedPreferences(getContext()).getBoolean("theme", false)) {
83
+ ds.setColor(Color.WHITE);
84
+ }
85
+ else {
86
+ ds.setColor(Color.BLACK);
87
88
}
89
};
90
0 commit comments