diff --git a/android-json-form-wizard/src/main/java/com/vijay/jsonwizard/utils/PropertyManager.java b/android-json-form-wizard/src/main/java/com/vijay/jsonwizard/utils/PropertyManager.java index 71d05fad2..3ffc94311 100644 --- a/android-json-form-wizard/src/main/java/com/vijay/jsonwizard/utils/PropertyManager.java +++ b/android-json-form-wizard/src/main/java/com/vijay/jsonwizard/utils/PropertyManager.java @@ -55,11 +55,13 @@ public class PropertyManager { public PropertyManager(Context context) { mContext = context; mProperties = new HashMap<>(); - grantPhoneStatePermission(); - handleOnRequestPermissionResults(); - if (ActivityCompat.checkSelfPermission(mContext, Manifest.permission.READ_PHONE_STATE) - == PackageManager.PERMISSION_GRANTED) { - addPhoneProperties(); + if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) { + grantPhoneStatePermission(); + handleOnRequestPermissionResults(); + if (ActivityCompat.checkSelfPermission(mContext, Manifest.permission.READ_PHONE_STATE) + == PackageManager.PERMISSION_GRANTED) { + addPhoneProperties(); + } } } diff --git a/gradle.properties b/gradle.properties index 5e3c8be30..ef8463808 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -VERSION_NAME=1.14.8.2-SNAPSHOT +VERSION_NAME=1.14.8.3-SNAPSHOT VERSION_CODE=1 GROUP=org.smartregister POM_SETTING_DESCRIPTION=OpenSRP Client Native Form Json Wizard