Skip to content
Snippets Groups Projects
Commit 51903350 authored by Volker Richert's avatar Volker Richert
Browse files

- upgrade to Realm 2.2.2

- minor changes
parent 12161cf1
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,6 @@ buildscript { ...@@ -7,7 +7,6 @@ buildscript {
dependencies { dependencies {
classpath 'io.fabric.tools:gradle:1.21.6' classpath 'io.fabric.tools:gradle:1.21.6'
classpath 'io.realm:realm-gradle-plugin:2.2.2'
classpath 'org.ajoberstar:grgit:1.5.0' classpath 'org.ajoberstar:grgit:1.5.0'
} }
} }
......
...@@ -56,15 +56,15 @@ public class MedtronicCnlAlarmManager { ...@@ -56,15 +56,15 @@ public class MedtronicCnlAlarmManager {
millis = now; millis = now;
// only accept alarm nearer than the last one // only accept alarm nearer than the last one
if (nextAlarm < millis && nextAlarm >= now) { //if (nextAlarm < millis && nextAlarm > now) {
return; // return;
} //}
cancelAlarm(); cancelAlarm();
nextAlarm = millis; nextAlarm = millis;
Log.d(TAG, "AlarmManager set to fire at " + new Date(millis)); Log.d(TAG, "Alarm set to fire at " + new Date(millis));
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
alarmManager.setAlarmClock(new AlarmManager.AlarmClockInfo(millis, null), pendingIntent); alarmManager.setAlarmClock(new AlarmManager.AlarmClockInfo(millis, null), pendingIntent);
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
......
...@@ -8,7 +8,7 @@ buildscript { ...@@ -8,7 +8,7 @@ buildscript {
classpath 'com.android.tools.build:gradle:2.2.3' classpath 'com.android.tools.build:gradle:2.2.3'
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files // in the individual module build.gradle files
classpath "io.realm:realm-gradle-plugin:1.0.0" classpath 'io.realm:realm-gradle-plugin:2.2.2'
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment