Describe the bug
I attached some PDF files a few months ago to many notes and everything was ok. Today I tried to access them and OmniNotes crashes every time I try to click PDF and says it sent message to the developer. Adb logcat shows this trace:
07-28 12:30:28.206 5346 5346 E ACRA : ACRA caught a FileUriExposedException for it.feio.android.omninotes
07-28 12:30:28.206 5346 5346 E ACRA : android.os.FileUriExposedException: file:///storage/emulated/0/Android/data/it.feio.android.omninotes/files/20190608_211048_447.pdf exposed beyond app through Intent.getData()
07-28 12:30:28.206 5346 5346 E ACRA : at android.os.StrictMode.onFileUriExposed(StrictMode.java:1960)
07-28 12:30:28.206 5346 5346 E ACRA : at android.net.Uri.checkFileUriExposed(Uri.java:2356)
07-28 12:30:28.206 5346 5346 E ACRA : at android.content.Intent.prepareToLeaveProcess(Intent.java:9881)
07-28 12:30:28.206 5346 5346 E ACRA : at android.content.Intent.prepareToLeaveProcess(Intent.java:9835)
07-28 12:30:28.206 5346 5346 E ACRA : at android.app.Instrumentation.execStartActivity(Instrumentation.java:1612)
07-28 12:30:28.206 5346 5346 E ACRA : at android.app.Activity.startActivityForResult(Activity.java:4501)
07-28 12:30:28.206 5346 5346 E ACRA : at android.support.v4.app.ActivityCompatJB.startActivityForResult(ActivityCompatJB.java:30)
07-28 12:30:28.206 5346 5346 E ACRA : at android.support.v4.app.ActivityCompat.startActivityForResult(ActivityCompat.java:162)
07-28 12:30:28.206 5346 5346 E ACRA : at android.support.v4.app.FragmentActivity.startActivityFromFragment(FragmentActivity.java:914)
07-28 12:30:28.206 5346 5346 E ACRA : at android.support.v4.app.FragmentActivity$HostCallbacks.onStartActivityFromFragment(FragmentActivity.java:1009)
07-28 12:30:28.206 5346 5346 E ACRA : at android.support.v4.app.Fragment.startActivity(Fragment.java:921)
07-28 12:30:28.206 5346 5346 E ACRA : at android.support.v4.app.Fragment.startActivity(Fragment.java:910)
07-28 12:30:28.206 5346 5346 E ACRA : at it.feio.android.omninotes.DetailFragment.lambda$initViewAttachments$7(DetailFragment.java:649)
07-28 12:30:28.206 5346 5346 E ACRA : at it.feio.android.omninotes.DetailFragment.access$lambda$7(Unknown Source:0)
07-28 12:30:28.206 5346 5346 E ACRA : at it.feio.android.omninotes.DetailFragment$$Lambda$8.onItemClick(Unknown Source:6)
07-28 12:30:28.206 5346 5346 E ACRA : at android.widget.AdapterView.performItemClick(AdapterView.java:318)
07-28 12:30:28.206 5346 5346 E ACRA : at android.widget.AbsListView.performItemClick(AbsListView.java:1181)
07-28 12:30:28.206 5346 5346 E ACRA : at android.widget.AbsListView$PerformClick.run(AbsListView.java:3150)
07-28 12:30:28.206 5346 5346 E ACRA : at android.os.Handler.handleCallback(Handler.java:790)
07-28 12:30:28.206 5346 5346 E ACRA : at android.os.Handler.dispatchMessage(Handler.java:99)
07-28 12:30:28.206 5346 5346 E ACRA : at android.os.Looper.loop(Looper.java:164)
07-28 12:30:28.206 5346 5346 E ACRA : at android.app.ActivityThread.main(ActivityThread.java:6518)
07-28 12:30:28.206 5346 5346 E ACRA : at java.lang.reflect.Method.invoke(Native Method)
07-28 12:30:28.206 5346 5346 E ACRA : at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
07-28 12:30:28.206 5346 5346 E ACRA : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Context
Device: Asus ZB602KL
OS version: Android 8.1.0, rooted stock ROM
App version: 5.5.3 from Google Play
How to reproduce
Steps to reproduce the behavior:
Attach PDF file
Touch it
Expected behavior
Application should not crash.
Screenshots
Impossible, toast box is to fast to be screenshoted.
Describe the bug I attached some PDF files a few months ago to many notes and everything was ok. Today I tried to access them and OmniNotes crashes every time I try to click PDF and says it sent message to the developer. Adb logcat shows this trace:
Context
How to reproduce Steps to reproduce the behavior:
Expected behavior Application should not crash.
Screenshots Impossible, toast box is to fast to be screenshoted.