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
861cecb8
authored
Sep 06, 2023
by
wukun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0906
parent
d43cd804
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
baseSDK/src/main/java/com/dayu/utils/SelectPicUtils.java
userCenter/src/main/java/com/dayu/usercenter/ui/activity2/RegisterActivity.java
baseSDK/src/main/java/com/dayu/utils/SelectPicUtils.java
View file @
861cecb8
...
...
@@ -69,9 +69,11 @@ public class SelectPicUtils {
.
openGallery
(
SelectMimeType
.
ofImage
())
//全部.PictureMimeType.ofAll()、图片.ofImage()、视频.ofVideo()
// .setFilterMaxFileSize(size)
.
setImageEngine
(
GlideEngine
.
createGlideEngine
())
.
setCropEngine
(
imageFileCropEngine
)
.
setImageSpanCount
(
4
)
.
setSelectionMode
(
SelectModeConfig
.
MULTIPLE
);
if
(!
isFree
){
selector
.
setCropEngine
(
imageFileCropEngine
);
}
// .isPreviewImage(true)
// .isDisplayCamera(true)
// .isSelectZoomAnim(true)
...
...
userCenter/src/main/java/com/dayu/usercenter/ui/activity2/RegisterActivity.java
View file @
861cecb8
...
...
@@ -212,7 +212,10 @@ public class RegisterActivity extends BaseActivity<SImplePresenter, ActivityRegi
if
(!
TextUtils
.
isEmpty
(
mSelectList
.
get
(
0
).
getCompressPath
()))
{
identityPath
=
mSelectList
.
get
(
0
).
getCompressPath
();
}
else
{
identityPath
=
mSelectList
.
get
(
0
).
getCutPath
();
identityPath
=
mSelectList
.
get
(
0
).
getPath
();
if
(
identityPath
.
contains
(
"content"
)){
identityPath
=
mSelectList
.
get
(
0
).
getRealPath
();
}
}
GlideImageLoader
.
load
(
mActivity
,
identityPath
,
mBind
.
idetntity
);
}
...
...
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