Skip to content

Commit

Permalink
rename and remove
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga committed Jan 8, 2024
1 parent adcc8e3 commit 9b8938c
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -533,14 +533,13 @@ public boolean handleMessage(Message msg)
&& windowActivity.get().getSupportActionBar() != null) {
ActionBar actionBar = windowActivity.get().getSupportActionBar();
if (actionBar.getTitle() instanceof SpannableStringBuilder) {
SpannableStringBuilder ssb;
ssb = (SpannableStringBuilder) actionBar.getTitle();
ssb = new SpannableStringBuilder(TiConvert.toString((Object) (msg.obj), ""));
SpannableStringBuilder stringBuilder;
stringBuilder = new SpannableStringBuilder(TiConvert.toString((Object) (msg.obj), ""));
if (barColor != -1) {
ssb.setSpan(new ForegroundColorSpan(barColor),
0, ssb.length(), Spannable.SPAN_INCLUSIVE_INCLUSIVE);
stringBuilder.setSpan(new ForegroundColorSpan(barColor),
0, stringBuilder.length(), Spannable.SPAN_INCLUSIVE_INCLUSIVE);
}
actionBar.setTitle(ssb);
actionBar.setTitle(stringBuilder);
} else {
actionBar.setTitle(TiConvert.toString((Object) (msg.obj), ""));
}
Expand Down

0 comments on commit 9b8938c

Please sign in to comment.