Commit b1b03e71 by han xu

h5 传图片问题

parent 53cae3a2
......@@ -5,8 +5,8 @@ buildscript {
ext.build_tools_version = "29.0.2"
ext.min_sdk_version = 21
ext.target_sdk_version = 29
ext.version_code = 312
ext.verson_name = "3.1.2"
ext.version_code = 313
ext.verson_name = "3.1.3"
ext.gradle_version = '4.0.1'
ext.isReleaseMinify = false
ext.isDebugMinify = false
......
......@@ -76,7 +76,7 @@
android:id="@+id/ll_bussiness"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/line_color"
android:background="@color/cl_bg"
android:orientation="vertical">
<com.dayu.widgets.AutoPollRecyclerView
......
......@@ -179,7 +179,8 @@ public class CommeWebViewActivity extends DataBindingActivity<ActivityWebviewBin
mUploadMessage = uploadMsg;
Intent i = new Intent(Intent.ACTION_GET_CONTENT);
i.addCategory(Intent.CATEGORY_OPENABLE);
i.setType("image/*");
// i.setType("image/*");
i.setType("*/*");
startActivityForResult(Intent.createChooser(i, getString(R.string.choose_file)), RESULT_CODE);
}
......@@ -188,8 +189,8 @@ public class CommeWebViewActivity extends DataBindingActivity<ActivityWebviewBin
uploadMessageAboveL = uploadMsg;
Intent contentSelectionIntent = new Intent(Intent.ACTION_GET_CONTENT);
contentSelectionIntent.addCategory(Intent.CATEGORY_OPENABLE);
contentSelectionIntent.setType("image/*");
// contentSelectionIntent.setType("image/*");
contentSelectionIntent.setType("*/*");
Intent chooserIntent = new Intent(Intent.ACTION_CHOOSER);
chooserIntent.putExtra(Intent.EXTRA_INTENT, contentSelectionIntent);
chooserIntent.putExtra(Intent.EXTRA_TITLE, getString(R.string.choose_pic));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment