it needs to be seen, and the current view is obvious and needs not be
so explicit
Data.profile.addObserver((o, arg) -> {
MobileLedgerProfile profile = Data.profile.get();
runOnUiThread(() -> {
- if (profile == null) toolbar.setSubtitle("");
- else toolbar.setSubtitle(profile.getName());
+ if (profile == null) setTitle(R.string.app_name);
+ else setTitle(profile.getName());
});
});
item.setBackgroundColor(getResources().getColor(R.color.table_row_even_bg));
}
- setTitle(item.getText());
-
@ColorInt int transparent = getResources().getColor(android.R.color.transparent);
LinearLayout actions = drawer.findViewById(R.id.nav_actions);