fixup: access Android_id only on push
This commit is contained in:
parent
59c23f5558
commit
33c63fb562
|
@ -18,7 +18,8 @@ public class PhoneHelper {
|
|||
}
|
||||
|
||||
public static Uri getProfilePictureUri(final Context context) {
|
||||
if (context.checkSelfPermission(Manifest.permission.READ_CONTACTS) != PackageManager.PERMISSION_GRANTED) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M
|
||||
&& context.checkSelfPermission(Manifest.permission.READ_CONTACTS) != PackageManager.PERMISSION_GRANTED) {
|
||||
return null;
|
||||
}
|
||||
final String[] projection = new String[] {Profile._ID, Profile.PHOTO_URI};
|
||||
|
|
Loading…
Reference in a new issue