You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Toast.makeText(this, "OnShowRationale for camera", Toast.LENGTH_SHORT).show();
@@ -67,7 +69,7 @@ public class MainActivity extends AppCompatActivity {
67
69
# Migrating to 2.x.x
68
70
69
71
Finally, you should not call the PermissionsDispatcher delegate class static methods anymore, this
70
-
plugin will generate those calls for you. Just call the method which was annotated with `@NeedsPermission`. Overriding `onRequestPermissionsResult` should also be removed completely.
72
+
plugin will generate those calls for you. Just call the method which was annotated with `@NeedsPermission`. Overriding `onRequestPermissionsResult`and `onActivtyResult` (special permissions) should also be removed completely.
71
73
See the example project for code.
72
74
73
75
## Thanks
@@ -76,6 +78,10 @@ See the example project for code.
Copy file name to clipboardExpand all lines: app/src/main/java/com/github/aleksandermielczarek/androidannotationspermissionsdispatcherpluginexample/MainActivity.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ protected void showCamera() {
34
34
}
35
35
36
36
@OnPermissionDenied(Manifest.permission.CAMERA)
37
-
protectedvoidonPermissionDenieCamera() {
37
+
protectedvoidonPermissionDeniedCamera() {
38
38
Toast.makeText(this, "@OnPermissionDenied for camera", Toast.LENGTH_SHORT).show();
0 commit comments