mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
0be37baeee
commit
f67d5e2602
|
@ -353,7 +353,9 @@ public class FragmentBase extends Fragment {
|
|||
View custom = actionbar.getCustomView();
|
||||
TextView tvTitle = custom.findViewById(R.id.title);
|
||||
TextView tvSubtitle = custom.findViewById(R.id.subtitle);
|
||||
if (tvTitle != null)
|
||||
tvTitle.setText(title == null ? getString(R.string.app_name) : title);
|
||||
if (tvSubtitle != null)
|
||||
tvSubtitle.setText(subtitle);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue