Skip to content

Commit

Permalink
remove camera permission check
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederikos committed Sep 6, 2017
1 parent 5067fdc commit d6830f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
6 changes: 3 additions & 3 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apply plugin: "com.jfrog.bintray"
def siteUrl = 'https://github.com/Frederikos/RxImagePicker'
def gitUrl = 'https://github.com/Frederikos/RxImagePicker.git'

version = "2.0.0"
version = "2.0.1"
group = "com.mlsdev.rximagepicker"

Properties properties = new Properties()
Expand Down Expand Up @@ -33,8 +33,8 @@ android {
defaultConfig {
minSdkVersion 16
targetSdkVersion 25
versionCode 12
versionName "2.0.0"
versionCode 13
versionName "2.0.1"
}

buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,8 @@ private void handleIntent(Intent intent) {
}

private boolean checkPermission() {
if (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE)
!= PackageManager.PERMISSION_GRANTED
|| (ContextCompat.checkSelfPermission(this, Manifest.permission.CAMERA)
!= PackageManager.PERMISSION_GRANTED)) {

ActivityCompat.requestPermissions(this,
new String[] {Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.CAMERA}, 0);
if (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, 0);
return false;
} else {
return true;
Expand Down

0 comments on commit d6830f4

Please sign in to comment.