Skip to content

Commit

Permalink
1. 쪼금수정
Browse files Browse the repository at this point in the history
  • Loading branch information
cookiegon committed Feb 20, 2020
1 parent 6daa2b4 commit 499c76d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ android {
minSdkVersion 16
targetSdkVersion 28
versionCode 1
versionName "1.3.6"
versionName "1.3.7"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1200,15 +1200,22 @@ protected void openFileInput(final ValueCallback<Uri> fileUploadCallbackFirst, f
if(fileType == null || fileType.length == 0){
i.setType(mUploadableFileTypes);
}else {

Log.d("CKWEBVIEW","fileType length : " + fileType.length);

if(fileType.length == 1 && fileType[0].equals("image/*")){

String type = fileType[0];
Log.d("CKWEBVIEW","webview load only image file : " + type);
if(type.contains("image/*")){
i.removeCategory(Intent.CATEGORY_OPENABLE);
i.setAction(Intent.ACTION_PICK);
i.setType(type);
}else {
Log.d("CKWEBVIEW","webview load file : " + type);
i.setType(type);
}

}else {
for (String type : fileType) {
if (!TextUtils.isEmpty(type)) {
Expand Down

0 comments on commit 499c76d

Please sign in to comment.