Fix device.hasGallery

pull/795/head
Alex Baker 5 years ago
parent 44c34ce3ce
commit daad9d1fc5

@ -42,8 +42,8 @@ public class Device {
}
public boolean hasGallery() {
Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
intent.setType("image/*");
Intent intent = new Intent(Intent.ACTION_PICK);
intent.setDataAndType(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, "image/*");
return intent.resolveActivity(context.getPackageManager()) != null;
}

Loading…
Cancel
Save