mirror of https://github.com/readrops/Readrops.git
fix item activity toolbar subtitle color
This commit is contained in:
parent
00ac9211fd
commit
e14a098cf8
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue