Skip to content

Commit

Permalink
Added support for android 11
Browse files Browse the repository at this point in the history
Remove un use-full condition from camera intent
  • Loading branch information
yogeshpaliyal committed Feb 24, 2021
1 parent b76c5c8 commit 626f770
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ buildscript {
}

android {
compileSdkVersion 28
compileSdkVersion 30
buildToolsVersion '28.0.2'
defaultConfig {
applicationId 'com.vansuita.pickimage.sample'
minSdkVersion 14
targetSdkVersion 28
targetSdkVersion 30
versionCode 4
versionName "1.0"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,11 @@ private Intent getCameraIntent() {
}

public void launchCamera(Fragment listener) {
if (getCameraIntent().resolveActivity(activity.getPackageManager()) != null) {

cameraFile().delete();

Intent chooser = Intent.createChooser(getCameraIntent(), setup.getCameraChooserTitle());
listener.startActivityForResult(chooser, REQUESTER);
}
}

/**
Expand Down

0 comments on commit 626f770

Please sign in to comment.