diff options
author | cyBerta <cyberta@riseup.net> | 2022-12-12 14:06:52 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2022-12-15 23:57:15 +0100 |
commit | 14b082f7670b25aabe22a3cd8db334b327645f8f (patch) | |
tree | f604dd41a256474626be5fcd3d264a26d4b43c55 | |
parent | 9c9143cf19332b54b9c25aa30020dc43f8ef4215 (diff) |
setting spannable in ActionBar correctly. Fixes crash
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/base/utils/ViewHelper.java | 2 |
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(); |