Prevent weekend crash

pull/212/head
M66B 1 year ago
parent ecee122ab4
commit af73c89994

@ -24,6 +24,7 @@ import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.text.TextUtils;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
@ -47,6 +48,7 @@ public class FragmentDialogWeekend extends FragmentDialogBase {
String weekend = prefs.getString("weekend", Calendar.SATURDAY + "," + Calendar.SUNDAY);
for (String day : weekend.split(","))
if (!TextUtils.isEmpty(day))
days[Integer.parseInt(day) - 1] = true;
return new AlertDialog.Builder(context)

Loading…
Cancel
Save