NightWhistler / PageTurner

Android e-book reader with cloud synchronization
pageturner-reader.org
GNU General Public License v3.0
466 stars 221 forks source link

IllegalArgumentException on notification #510

Closed NightWhistler closed 11 years ago

NightWhistler commented 11 years ago

java.lang.IllegalArgumentException: contentIntent required: pkg=net.nightwhistler.pageturner.ads id=674250478 notification=Notification(vibrate=null,sound=null,defaults=0x0,flags=0x10) at android.os.Parcel.readException(Parcel.java:1326) at android.os.Parcel.readException(Parcel.java:1276) at android.app.INotificationManager$Stub$Proxy.enqueueNotificationWithTag(INotificationManager.java:322) at android.app.NotificationManager.notify(NotificationManager.java:111) at android.app.NotificationManager.notify(NotificationManager.java:91) at net.nightwhistler.pageturner.activity.ReadingFragment.errorOnBookOpening(ReadingFragment.java:1599) at net.nightwhistler.pageturner.view.bookview.BookView.errorOnBookOpening(BookView.java:1031) at net.nightwhistler.pageturner.view.bookview.BookView.access$1700(BookView.java:81) at net.nightwhistler.pageturner.view.bookview.BookView$LoadTextTask.doOnPostExecute(BookView.java:1413) at net.nightwhistler.pageturner.view.bookview.BookView$LoadTextTask.doOnPostExecute(BookView.java:1263) at net.nightwhistler.pageturner.scheduling.QueueableAsyncTask.onPostExecute(QueueableAsyncTask.java:56) at android.os.AsyncTask.finish(AsyncTask.java:417) at android.os.AsyncTask.access$300(AsyncTask.java:127) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:3687) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625) at dalvik.system.NativeStart.main(Native Method)

NightWhistler commented 11 years ago

Happens on Android 2.3

NightWhistler commented 11 years ago

Fixed by always providing contentIntent.