Skip to content

Commit 2c940a5

Browse files
committed
fix intent
1 parent 277f3e1 commit 2c940a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/src/main/java/com/ninty/system/setting/SystemSetting.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ public void setVolume(float val, ReadableMap config) {
303303
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M
304304
&& !notificationManager.isNotificationPolicyAccessGranted()) {
305305
Intent intent = new Intent(android.provider.Settings.ACTION_NOTIFICATION_POLICY_ACCESS_SETTINGS);
306-
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
307-
mContext.startActivity(intent);
306+
// intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
307+
mContext.getCurrentActivity().startActivity(intent);
308308
}
309309
}
310310
Log.e(TAG, "err", e);

0 commit comments

Comments
 (0)