mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +00:00
Prevent crash
This commit is contained in:
parent
0be37baeee
commit
f67d5e2602
1 changed files with 4 additions and 2 deletions
|
@ -353,8 +353,10 @@ public class FragmentBase extends Fragment {
|
||||||
View custom = actionbar.getCustomView();
|
View custom = actionbar.getCustomView();
|
||||||
TextView tvTitle = custom.findViewById(R.id.title);
|
TextView tvTitle = custom.findViewById(R.id.title);
|
||||||
TextView tvSubtitle = custom.findViewById(R.id.subtitle);
|
TextView tvSubtitle = custom.findViewById(R.id.subtitle);
|
||||||
tvTitle.setText(title == null ? getString(R.string.app_name) : title);
|
if (tvTitle != null)
|
||||||
tvSubtitle.setText(subtitle);
|
tvTitle.setText(title == null ? getString(R.string.app_name) : title);
|
||||||
|
if (tvSubtitle != null)
|
||||||
|
tvSubtitle.setText(subtitle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue