{"action":"created","issue":{"url":"https://api.github.com/repos/Karumi/Dexter/issues/100","repository_url":"https://api.github.com/repos/Karumi/Dexter","labels_url":"https://api.github.com/repos/Karumi/Dexter/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/Karumi/Dexter/issues/100/comments","events_url":"https://api.github.com/repos/Karumi/Dexter/issues/100/events","html_url":"https://github.com/Karumi/Dexter/issues/100","id":193841992,"number":100,"title":"Some permissions cause the app to crash","user":{"login":"tallnato","id":2511837,"avatar_url":"https://avatars.githubusercontent.com/u/2511837?v=3","gravatar_id":"","url":"https://api.github.com/users/tallnato","html_url":"https://github.com/tallnato","followers_url":"https://api.github.com/users/tallnato/followers","following_url":"https://api.github.com/users/tallnato/following{/other_user}","gists_url":"https://api.github.com/users/tallnato/gists{/gist_id}","starred_url":"https://api.github.com/users/tallnato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tallnato/subscriptions","organizations_url":"https://api.github.com/users/tallnato/orgs","repos_url":"https://api.github.com/users/tallnato/repos","events_url":"https://api.github.com/users/tallnato/events{/privacy}","received_events_url":"https://api.github.com/users/tallnato/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-06T18:00:02Z","updated_at":"2016-12-06T18:04:31Z","closed_at":"2016-12-06T18:04:31Z","body":"I've been trying to integrate your lib with an app that I'm doing, but i've come across with a problem,\r\nif I request the permissions **READ_PHONE_STATE** or **READ_SMS**, my app crashes.\r\n\r\nI've downloaded your master branch and then changed your sample to request to ask for those permissions and the same happened. \r\nThe only change was this:\r\n```java\r\n@OnClick(R.id.all_permissions_button) public void onAllPermissionsButtonClicked() {\r\n    if (Dexter.isRequestOngoing()) {\r\n      return;\r\n    }\r\n    Dexter.checkPermissions(allPermissionsListener, Manifest.permission.READ_PHONE_STATE, Manifest.permission.READ_SMS);\r\n  }\r\n```\r\n\r\n\r\n\r\nThe crash report \r\n```\r\n FATAL EXCEPTION: main\r\n    Process: com.karumi.dexter.sample, PID: 3668\r\n    java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=42, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {com.karumi.dexter.sample/com.karumi.dexter.DexterActivity}: java.lang.RuntimeException: No feedback view for this permission\r\n        at android.app.ActivityThread.deliverResults(ActivityThread.java:3699)\r\n        at android.app.ActivityThread.handleSendResult(ActivityThread.java:3742)\r\n        at android.app.ActivityThread.-wrap16(ActivityThread.java)\r\n        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1393)\r\n        at android.os.Handler.dispatchMessage(Handler.java:102)\r\n        at android.os.Looper.loop(Looper.java:148)\r\n        at android.app.ActivityThread.main(ActivityThread.java:5417)\r\n        at java.lang.reflect.Method.invoke(Native Method)\r\n        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\n        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\n     Caused by: java.lang.RuntimeException: No feedback view for this permission\r\n        at com.karumi.dexter.sample.SampleActivity.getFeedbackViewForPermission(SampleActivity.java:197)\r\n        at com.karumi.dexter.sample.SampleActivity.showPermissionDenied(SampleActivity.java:137)\r\n        at com.karumi.dexter.sample.SampleMultiplePermissionListener.onPermissionsChecked(SampleMultiplePermissionListener.java:41)\r\n        at com.karumi.dexter.listener.multi.CompositeMultiplePermissionsListener.onPermissionsChecked(CompositeMultiplePermissionsListener.java:54)\r\n        at com.karumi.dexter.MultiplePermissionListenerThreadDecorator$1.run(MultiplePermissionListenerThreadDecorator.java:45)\r\n        at com.karumi.dexter.MainThread.execute(MainThread.java:32)\r\n        at com.karumi.dexter.MultiplePermissionListenerThreadDecorator.onPermissionsChecked(MultiplePermissionListenerThreadDecorator.java:43)\r\n        at com.karumi.dexter.DexterInstance.onPermissionsChecked(DexterInstance.java:278)\r\n        at com.karumi.dexter.DexterInstance.updatePermissionsAsDenied(DexterInstance.java:261)\r\n        at com.karumi.dexter.DexterInstance.onPermissionRequestDenied(DexterInstance.java:148)\r\n        at com.karumi.dexter.Dexter.onPermissionsRequested(Dexter.java:176)\r\n        at com.karumi.dexter.DexterActivity.onRequestPermissionsResult(DexterActivity.java:54)\r\n        at android.app.Activity.dispatchRequestPermissionsResult(Activity.java:6553)\r\n        at android.app.Activity.dispatchActivityResult(Activity.java:6432)\r\n        at android.app.ActivityThread.deliverResults(ActivityThread.java:3695)\r\n        at android.app.ActivityThread.handleSendResult(ActivityThread.java:3742) \r\n        at android.app.ActivityThread.-wrap16(ActivityThread.java) \r\n        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1393) \r\n        at android.os.Handler.dispatchMessage(Handler.java:102) \r\n        at android.os.Looper.loop(Looper.java:148) \r\n        at android.app.ActivityThread.main(ActivityThread.java:5417) \r\n        at java.lang.reflect.Method.invoke(Native Method) \r\n        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) \r\n        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) \r\n```\r\n \r\nHave you ever come across with this error?\r\nAnything you can do about it?\r\n\r\nThanks\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Karumi/Dexter/issues/comments/265224382","html_url":"https://github.com/Karumi/Dexter/issues/100#issuecomment-265224382","issue_url":"https://api.github.com/repos/Karumi/Dexter/issues/100","id":265224382,"user":{"login":"Serchinastico","id":3116415,"avatar_url":"https://avatars.githubusercontent.com/u/3116415?v=3","gravatar_id":"","url":"https://api.github.com/users/Serchinastico","html_url":"https://github.com/Serchinastico","followers_url":"https://api.github.com/users/Serchinastico/followers","following_url":"https://api.github.com/users/Serchinastico/following{/other_user}","gists_url":"https://api.github.com/users/Serchinastico/gists{/gist_id}","starred_url":"https://api.github.com/users/Serchinastico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Serchinastico/subscriptions","organizations_url":"https://api.github.com/users/Serchinastico/orgs","repos_url":"https://api.github.com/users/Serchinastico/repos","events_url":"https://api.github.com/users/Serchinastico/events{/privacy}","received_events_url":"https://api.github.com/users/Serchinastico/received_events","type":"User","site_admin":false},"created_at":"2016-12-06T18:04:31Z","updated_at":"2016-12-06T18:04:31Z","body":"Hi @tallnato,\r\n\r\nThis is actually an exception from the Sample project itself. If you want to try with other permissions there, you will need to update a couple appearances of the new permission you are using. More specifically, that exception is raised in the `getFeedbackViewForPermission` method in `SampleActivity`. Update that method so that it can find the feedback view you want to update when requesting that permission and... voilà!.\r\n\r\nHope that makes sense.\r\nThanks for reporting!"}}
{"actor":{"display_login":"Serchinastico"}}