Fix device.hasGallery

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

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

Loading…
Cancel
Save