caarmen / FRCAndroidWidget

French Revolutionary Calendar Android Widget
GNU General Public License v3.0
11 stars 2 forks source link

Crash when showing notification: honeycomb + ics #33

Closed caarmen closed 7 years ago

caarmen commented 7 years ago

Discovered thanks to issue #32

Steps to reproduce:

Impacted versions: Honeycomb and Ice Cream Sandwich (apis 11-15).

E/AndroidRuntime: FATAL EXCEPTION: main
                  java.lang.NoSuchMethodError: android.app.Notification$Builder.setLocalOnly
                      at ca.rmen.android.frccommon.compat.Api11Helper.createNotification(Api11Helper.java:45)
                      at ca.rmen.android.frccommon.compat.NotificationCompat.createNotification(NotificationCompat.java:70)
                      at ca.rmen.android.frccommon.FRCSystemNotification$ShowNotificationTask.onPostExecute(FRCSystemNotification.java:67)
                      at ca.rmen.android.frccommon.FRCSystemNotification$ShowNotificationTask.onPostExecute(FRCSystemNotification.java:37)
                      at android.os.AsyncTask.finish(AsyncTask.java:602)
caarmen commented 7 years ago

Fixed in version 1.12.3.