Skip to content

Commit

Permalink
open app's setting page
Browse files Browse the repository at this point in the history
  • Loading branch information
c19354837 committed Apr 7, 2018
1 parent 5751f69 commit 759bb2d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@ public void getAppBrightness(Promise promise) {
@ReactMethod
public void openWriteSetting() {
Intent intent = new Intent(SysSettings.WRITESETTINGS.action, Uri.parse("package:" + mContext.getPackageName()));
mContext.getCurrentActivity().startActivityForResult(intent, SysSettings.WRITESETTINGS.requestCode);
switchSetting(SysSettings.WRITESETTINGS);
mContext.getCurrentActivity().startActivity(intent);
}

@ReactMethod
Expand Down

0 comments on commit 759bb2d

Please sign in to comment.