set background color to item activity title if available

This commit is contained in:
Shinokuni 2019-02-14 19:50:31 +00:00
parent f668f88a60
commit 90d15c57b2
1 changed files with 3 additions and 1 deletions

View File

@ -124,7 +124,9 @@ public class ItemActivity extends AppCompatActivity {
toolbarLayout.setTitle(itemWithFeed.getFeedName());
title.setText(item.getTitle());
if (itemWithFeed.getColor() != 0)
if (itemWithFeed.getBgColor() != 0)
title.setTextColor(itemWithFeed.getBgColor());
else if (itemWithFeed.getColor() != 0)
title.setTextColor(itemWithFeed.getColor());
if (item.getAuthor() != null) {