From 33abefdd14a58f4a4d6eb3273c75ff2e8a349562 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Fri, 22 Jun 2018 02:18:38 +0100 Subject: [PATCH] request for READ_PHONE_STATE permission after storage permission is granted --- src/main/java/io/lbry/browser/MainActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/lbry/browser/MainActivity.java b/src/main/java/io/lbry/browser/MainActivity.java index 0cfac89..200cc96 100644 --- a/src/main/java/io/lbry/browser/MainActivity.java +++ b/src/main/java/io/lbry/browser/MainActivity.java @@ -69,7 +69,6 @@ public class MainActivity extends Activity implements DefaultHardwareBackBtnHand STORAGE_PERMISSION_REQ_CODE, "LBRY requires access to your device storage to be able to download files and media.", this); - checkPhoneStatePermission(this); } super.onCreate(savedInstanceState); @@ -112,6 +111,9 @@ public class MainActivity extends Activity implements DefaultHardwareBackBtnHand switch (requestCode) { case STORAGE_PERMISSION_REQ_CODE: if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { + // Request for the READ_PHONE_STATE permission + checkPhoneStatePermission(this); + if (BuildConfig.DEBUG && !Settings.canDrawOverlays(this)) { Intent intent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION, Uri.parse("package:" + getPackageName()));