Kennyc1012 / BottomSheetMenu

BottomSheetMenu style dialogs for Android
Apache License 2.0
887 stars 99 forks source link

Menu items #34

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hi i really like the bottomsheet it looks great i'm working on a web browser and i've implemented it to launch an app from a web url but i've got a problem with the bottom sheet items not working or crashing when you load it from shouldOverrideUrlLoading i have attached the code so you can see and when i click these items the app crashes can you give me any suggestions ?

Kennyc1012 commented 8 years ago

Can you post the stack trace of the crash?

Kennyc1012 commented 8 years ago

This looks like an issue with the Uri string being null, not the library On Jul 3, 2016 11:03 AM, "Jack Roberts" notifications@github.com wrote:

07-03 16:01:52.592 13877-13877/com.jackroberts.orion D/Orion :: Added to historycom.jackroberts.orion.History@bb1adc3 https://github.com/historycom.jackroberts.orion.History/BottomSheet/commit/bb1adc3 07-03 16:01:52.606 13877-13877/com.jackroberts.orion D/Orion :: Added to historycom.jackroberts.orion.History@f7636be https://github.com/historycom.jackroberts.orion.History/BottomSheet/commit/f7636be 07-03 16:02:00.498 13877-13877/com.jackroberts.orion D/AndroidRuntime: Shutting down VM 07-03 16:02:00.499 13877-13877/com.jackroberts.orion E/AndroidRuntime: FATAL EXCEPTION: main Process: com.jackroberts.orion, PID: 13877 java.lang.NullPointerException: uriString at android.net.Uri$StringUri.(Uri.java:475) at android.net.Uri$StringUri.(Uri.java) at android.net.Uri.parse(Uri.java:437) at com.jackroberts.orion.MainActivity$WebClient.onSheetItemSelected(MainActivity.java:962) at com.kennyc.bottomsheet.BottomSheet.onItemClick(BottomSheet.java:350) at android.widget.AdapterView.performItemClick(AdapterView.java:310) at android.widget.AbsListView.performItemClick(AbsListView.java:1155) at android.widget.AbsListView$PerformClick.run(AbsListView.java:3096) at android.widget.AbsListView$3.run(AbsListView.java:4011) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6044) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Kennyc1012/BottomSheet/issues/34#issuecomment-230157790, or mute the thread https://github.com/notifications/unsubscribe/ACOZYUI1jFXSoO_v1CN6fcHtqu4xUaUoks5qR88kgaJpZM4JD3XH .

ghost commented 8 years ago

is there a way to put the onSheetItemSelected items in the same area as calling the bottom sheet