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
bd6ba84241
commit
423f6871bb
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ public class CalendarHelper {
|
|||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
String weekend = prefs.getString("weekend", Calendar.SATURDAY + "," + Calendar.SUNDAY);
|
||||
for (String day : weekend.split(","))
|
||||
if (aday == Integer.parseInt(day))
|
||||
if (!TextUtils.isEmpty(day) && aday == Integer.parseInt(day))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue