Browse Source

Update ReactNativePermissionsModule.java

Vojtech Novak 8 years ago
parent
commit
6767c1fa22

+ 3
- 3
android/src/main/java/com/joshblour/reactnativepermissions/ReactNativePermissionsModule.java View File

@@ -28,7 +28,7 @@ public class ReactNativePermissionsModule extends ReactContextBaseJavaModule {
28 28
     MICROPHONE,
29 29
     CONTACTS,
30 30
     EVENT,
31
-    PHOTOS;
31
+    PHOTO;
32 32
   }
33 33
 
34 34
   public ReactNativePermissionsModule(ReactApplicationContext reactContext) {
@@ -118,11 +118,11 @@ public class ReactNativePermissionsModule extends ReactContextBaseJavaModule {
118 118
         return Manifest.permission.READ_CONTACTS;
119 119
       case EVENT:
120 120
         return Manifest.permission.READ_CALENDAR;
121
-      case PHOTOS:
121
+      case PHOTO:
122 122
         return Manifest.permission.READ_EXTERNAL_STORAGE;
123 123
       default:
124 124
         return null;
125 125
     }
126 126
   }
127 127
 
128
-}
128
+}