summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2022-12-12 14:06:52 +0100
committercyBerta <cyberta@riseup.net>2022-12-15 23:57:15 +0100
commit14b082f7670b25aabe22a3cd8db334b327645f8f (patch)
treef604dd41a256474626be5fcd3d264a26d4b43c55 /app/src
parent9c9143cf19332b54b9c25aa30020dc43f8ef4215 (diff)
setting spannable in ActionBar correctly. Fixes crash
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/base/utils/ViewHelper.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/base/utils/ViewHelper.java b/app/src/main/java/se/leap/bitmaskclient/base/utils/ViewHelper.java
index 8076f99e..bbd77c36 100644
--- a/app/src/main/java/se/leap/bitmaskclient/base/utils/ViewHelper.java
+++ b/app/src/main/java/se/leap/bitmaskclient/base/utils/ViewHelper.java
@@ -61,7 +61,7 @@ public class ViewHelper {
public static void setActionBarTextColor(ActionBar bar, @ColorRes int titleColor) {
CharSequence titleCharSequence = bar.getTitle();
- if (titleCharSequence == null) {
+ if (titleCharSequence == null || titleCharSequence.length() == 0) {
return;
}
String title = titleCharSequence.toString();