Drop support for ice cream sandwich

pull/757/head
Alex Baker 6 years ago
parent 1169e7fd5e
commit 0538744004

@ -22,7 +22,7 @@ android {
versionCode 539
versionName "6.1.3"
targetSdkVersion 28
minSdkVersion 15
minSdkVersion 16
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
javaCompileOptions {

@ -5,7 +5,7 @@
package="org.tasks">
<uses-sdk tools:overrideLibrary="timber.log, at.bitfire.ical4android, me.saket.bettermovementmethod"/>
<uses-sdk tools:overrideLibrary="at.bitfire.ical4android"/>
<!-- ================================================== Used Permissions = -->

@ -183,10 +183,6 @@ public class AndroidUtilities {
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1;
}
public static boolean atLeastJellybean() {
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN;
}
public static boolean atLeastKitKat() {
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;
}

@ -5,7 +5,6 @@
*/
package com.todoroo.astrid.reminders;
import static com.todoroo.andlib.utility.AndroidUtilities.atLeastJellybean;
import static com.todoroo.andlib.utility.AndroidUtilities.atLeastMarshmallow;
import static com.todoroo.andlib.utility.AndroidUtilities.atLeastOreo;
import static com.todoroo.andlib.utility.AndroidUtilities.preOreo;
@ -115,7 +114,6 @@ public class ReminderPreferences extends InjectingPreferenceActivity {
requires(atLeastMarshmallow(), R.string.battery_optimization_settings);
requires(
preOreo(), R.string.p_rmd_ringtone, R.string.p_rmd_vibrate, R.string.p_led_notification);
requires(atLeastJellybean(), R.string.p_bundle_notifications);
}
@TargetApi(Build.VERSION_CODES.O)

@ -3,7 +3,6 @@ package org.tasks.preferences;
import static android.content.SharedPreferences.Editor;
import static com.google.common.collect.Iterables.transform;
import static com.google.common.collect.Sets.newHashSet;
import static com.todoroo.andlib.utility.AndroidUtilities.atLeastJellybean;
import static java.util.Collections.emptySet;
import android.content.Context;
@ -438,7 +437,7 @@ public class Preferences {
}
public boolean bundleNotifications() {
return atLeastJellybean() && getBoolean(R.string.p_bundle_notifications, true);
return getBoolean(R.string.p_bundle_notifications, true);
}
public boolean usePersistentReminders() {

Loading…
Cancel
Save