fix item activity toolbar subtitle color

This commit is contained in:
Shinokuni 2019-03-20 11:17:13 +01:00
parent 00ac9211fd
commit e14a098cf8
1 changed files with 4 additions and 4 deletions

View File

@ -108,9 +108,7 @@ public class ItemActivity extends AppCompatActivity {
viewModel = ViewModelProvider.AndroidViewModelFactory.getInstance(getApplication()).create(ItemViewModel.class);
viewModel.getItemById(itemId).observe(this, this::bindUI);
actionButton.setOnClickListener(v -> {
openLink();
});
actionButton.setOnClickListener(v -> openLink());
}
private void bindUI(ItemWithFeed itemWithFeed) {
@ -124,8 +122,10 @@ public class ItemActivity extends AppCompatActivity {
else
toolbarLayout.setTitle(itemWithFeed.getFeedName());
if (itemWithFeed.getFolder().getId() != 1)
if (itemWithFeed.getFolder().getId() != 1) {
toolbar.setSubtitle(itemWithFeed.getFolder().getName());
toolbar.setSubtitleTextColor(Color.WHITE);
}
title.setText(item.getTitle());