Commit f5949e6c authored by Lennart Bader's avatar Lennart Bader
Browse files

Added empty message for Absent Teachers and Messages

parent 7c990455
......@@ -143,6 +143,9 @@ public class PlanFragment extends AuthenticationFragment {
absent += "\n\n" + msg;
}
}
if (absent == null) {
absent = "";
}
absentDialog.setMessage(absent);
absentDialog.setIcon(R.drawable.ic_menu_absent);
AlertDialog abs = absentDialog.create();
......@@ -159,6 +162,9 @@ public class PlanFragment extends AuthenticationFragment {
message += "\n" + msg;
}
}
if (message == null) {
message = "";
}
alertDialog.setMessage(message);
alertDialog.setIcon(R.drawable.ic_menu_about);
AlertDialog alert = alertDialog.create();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment