Commit c99e4737462ca1fb8c69ba2a3431806b05c74ce9

Authored by cuong
1 parent cfb0990106

show overlay

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

android/src/main/java/com/reactnativecommunity/rnpermissions/RNPermissionsModule.java
... ... @@ -211,7 +211,7 @@ public class RNPermissionsModule extends ReactContextBaseJavaModule {
211 211 // Show alert dialog to the user saying a separate permission is needed
212 212 // Launch the settings activity if the user prefers
213 213 Intent intent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION,
214   - Uri.parse(packageName));
  214 + Uri.parse("package:" + reactContext.getPackageName()));
215 215 currentActivity.startActivityForResult(intent, OVERLAY_PERMISSION_CODE);
216 216 } catch(Exception e) {
217 217 mPickerPromise.reject("ACTION_MANAGE_OVERLAY_PERMISSION_ERROR", e);