Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
android
/
dayu
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b1b03e71
authored
Jul 04, 2023
by
han xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h5 传图片问题
parent
53cae3a2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
build.gradle
saleCenter/src/main/res/layout/fragment_common_sale.xml
userCenter/src/main/java/com/dayu/usercenter/ui/activity/CommeWebViewActivity.java
build.gradle
View file @
b1b03e71
...
...
@@ -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
=
31
2
ext
.
verson_name
=
"3.1.
2
"
ext
.
version_code
=
31
3
ext
.
verson_name
=
"3.1.
3
"
ext
.
gradle_version
=
'4.0.1'
ext
.
isReleaseMinify
=
false
ext
.
isDebugMinify
=
false
...
...
saleCenter/src/main/res/layout/fragment_common_sale.xml
View file @
b1b03e71
...
...
@@ -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
...
...
userCenter/src/main/java/com/dayu/usercenter/ui/activity/CommeWebViewActivity.java
View file @
b1b03e71
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment