Link to settings on Android 8
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
This commit is contained in:
parent
8bbb2f8760
commit
e6623516e9
|
@ -82,8 +82,7 @@ public class MainActivity extends ReactActivity
|
|||
final Intent intent = new Intent();
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
intent.setAction(Settings.ACTION_APP_NOTIFICATION_SETTINGS);
|
||||
intent.putExtra("app_package", getPackageName());
|
||||
intent.putExtra("app_uid", getApplicationInfo().uid);
|
||||
intent.putExtra(Settings.EXTRA_APP_PACKAGE, getPackageName());
|
||||
} else {
|
||||
intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
|
||||
intent.addCategory(Intent.CATEGORY_DEFAULT);
|
||||
|
|
Loading…
Reference in New Issue