Compare commits

...

2 Commits

Author SHA1 Message Date
Cody Henthorne
85a1ca7735 Bump version to 6.12.6 2023-02-27 16:42:33 -05:00
Cody Henthorne
5ab5e26f31 Fix crash when trying to cancel alarm without permission. 2023-02-27 16:41:31 -05:00
2 changed files with 12 additions and 8 deletions

View File

@@ -47,14 +47,14 @@ ktlint {
}
def canonicalVersionCode = 1219
def canonicalVersionName = "6.12.5"
def canonicalVersionName = "6.12.6"
def postFixSize = 100
def abiPostFix = ['universal' : 0,
'armeabi-v7a' : 1,
'arm64-v8a' : 2,
'x86' : 3,
'x86_64' : 4]
def abiPostFix = ['universal' : 5,
'armeabi-v7a' : 6,
'arm64-v8a' : 7,
'x86' : 8,
'x86_64' : 9]
def keystores = [ 'debug' : loadKeystoreProperties('keystore.debug.properties') ]

View File

@@ -122,7 +122,11 @@ public abstract class TimedEventManager<E> {
Intent intent = new Intent(context, alarmClass);
PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, intent, PendingIntentFlags.mutable());
pendingIntent.cancel();
ServiceUtil.getAlarmManager(context).cancel(pendingIntent);
try {
pendingIntent.cancel();
ServiceUtil.getAlarmManager(context).cancel(pendingIntent);
} catch (SecurityException e) {
Log.i(TAG, "Unable to cancel alarm because we don't have permission");
}
}
}