Skip to content

Commit

Permalink
👌 fix standards
Browse files Browse the repository at this point in the history
  • Loading branch information
dubdabasoduba committed Nov 18, 2020
1 parent 0a60aa0 commit e092bd3
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
import android.net.wifi.WifiManager;
import android.os.Build;
import android.provider.Settings;
import androidx.core.app.ActivityCompat;
import android.telephony.TelephonyManager;

import androidx.annotation.NonNull;
import androidx.core.app.ActivityCompat;

import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.Task;
Expand Down Expand Up @@ -68,10 +68,8 @@ public PropertyManager(Context context) {
grantPhoneStatePermission();
}
handleOnRequestPermissionResults();
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) {
if (ActivityCompat.checkSelfPermission(mContext, Manifest.permission.READ_PHONE_STATE) == PackageManager.PERMISSION_GRANTED) {
addPhoneProperties();
}
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q && ActivityCompat.checkSelfPermission(mContext, Manifest.permission.READ_PHONE_STATE) == PackageManager.PERMISSION_GRANTED) {
addPhoneProperties();
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
addFirebaseInstanceId();
Expand Down

0 comments on commit e092bd3

Please sign in to comment.