diff --git a/android/modules/ui/src/java/ti/modules/titanium/ui/WindowProxy.java b/android/modules/ui/src/java/ti/modules/titanium/ui/WindowProxy.java index 1b2e58daf14..0814dee0cd6 100644 --- a/android/modules/ui/src/java/ti/modules/titanium/ui/WindowProxy.java +++ b/android/modules/ui/src/java/ti/modules/titanium/ui/WindowProxy.java @@ -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), "")); }