Fixes the text colour in the light theme for the collapsed toolbar in the account page.
This commit is contained in:
parent
8b4bf0ab33
commit
07f22b2560
2 changed files with 10 additions and 5 deletions
|
@ -109,9 +109,14 @@ public class AccountActivity extends BaseActivity {
|
||||||
< 2 * ViewCompat.getMinimumHeight(collapsingToolbar)) {
|
< 2 * ViewCompat.getMinimumHeight(collapsingToolbar)) {
|
||||||
if (getSupportActionBar() != null && loadedAccount != null) {
|
if (getSupportActionBar() != null && loadedAccount != null) {
|
||||||
getSupportActionBar().setTitle(loadedAccount.getDisplayName());
|
getSupportActionBar().setTitle(loadedAccount.getDisplayName());
|
||||||
getSupportActionBar().setSubtitle(
|
toolbar.setTitleTextColor(ThemeUtils.getColor(toolbar.getContext(),
|
||||||
String.format(getString(R.string.status_username_format),
|
android.R.attr.textColorPrimary));
|
||||||
loadedAccount.username));
|
|
||||||
|
String subtitle = String.format(getString(R.string.status_username_format),
|
||||||
|
loadedAccount.username);
|
||||||
|
getSupportActionBar().setSubtitle(subtitle);
|
||||||
|
toolbar.setSubtitleTextColor(ThemeUtils.getColor(toolbar.getContext(),
|
||||||
|
android.R.attr.textColorSecondary));
|
||||||
}
|
}
|
||||||
attribute = R.attr.account_toolbar_icon_tint_collapsed;
|
attribute = R.attr.account_toolbar_icon_tint_collapsed;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue