Skip to content

Commit

Permalink
fix(core): request permssion for modem infos
Browse files Browse the repository at this point in the history
Signed-off-by: Teclib <skita@teclib.com>
  • Loading branch information
stonebuzz committed Dec 18, 2019
1 parent 4fa6c45 commit 2247525
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ protected void onCreate(Bundle savedInstanceState) {
Manifest.permission.READ_EXTERNAL_STORAGE,
Manifest.permission.WRITE_EXTERNAL_STORAGE,
Manifest.permission.CAMERA,
Manifest.permission.READ_PHONE_STATE,
},
1);

Expand Down Expand Up @@ -167,7 +168,8 @@ public void onRequestPermissionsResult(int requestCode, String permissions[], in
if (grantResults.length > 0
&& grantResults[0] == PackageManager.PERMISSION_GRANTED
&& grantResults[1] == PackageManager.PERMISSION_GRANTED
&& grantResults[2] == PackageManager.PERMISSION_GRANTED) {
&& grantResults[2] == PackageManager.PERMISSION_GRANTED
&& grantResults[3] == PackageManager.PERMISSION_GRANTED) {
}
}
}
Expand Down

0 comments on commit 2247525

Please sign in to comment.