Change title for new profile screen

This commit is contained in:
Vitaliy 2020-02-19 15:50:31 +02:00
parent de7e62ac29
commit a6b57c176f

View file

@ -156,9 +156,13 @@ public class ProfileAppearanceFragment extends BaseSettingsFragment {
protected void createToolbar(LayoutInflater inflater, View view) { protected void createToolbar(LayoutInflater inflater, View view) {
super.createToolbar(inflater, view); super.createToolbar(inflater, view);
if (isNewProfile) { if (isNewProfile) {
TextView toolbarTitle = (TextView) view.findViewById(R.id.toolbar_title);
if (toolbarTitle != null) {
toolbarTitle.setText(getString(R.string.new_profile));
}
TextView toolbarSubtitle = (TextView) view.findViewById(R.id.toolbar_subtitle); TextView toolbarSubtitle = (TextView) view.findViewById(R.id.toolbar_subtitle);
if (toolbarSubtitle != null) { if (toolbarSubtitle != null) {
toolbarSubtitle.setText(getString(R.string.new_profile)); toolbarSubtitle.setVisibility(View.GONE);
} }
} }
} }