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
8afaae07
authored
Apr 25, 2023
by
wukun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部分相机相册功能,兼容安卓高版本
parent
33f3085f
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
36 additions
and
10 deletions
managercenter/src/main/java/com/dayu/managercenter/ui/activity/CreateOrderActivity.java
orderCenter/src/main/java/com/dayu/order/ui/activity/MultiProcessOrderActivity.java
orderCenter/src/main/java/com/dayu/order/ui/activity/MultipleProcessActivity.java
orderCenter/src/main/java/com/dayu/order/ui/activity/OrderPartReceiveActivity.java
orderCenter/src/main/java/com/dayu/order/ui/activity/OrderPartSendActivity.java
orderCenter/src/main/java/com/dayu/order/ui/activity/ProcessOrderActivity.java
userCenter/src/main/java/com/dayu/usercenter/ui/activity2/UploadSelfLicenceActivity.java
managercenter/src/main/java/com/dayu/managercenter/ui/activity/CreateOrderActivity.java
View file @
8afaae07
...
...
@@ -510,7 +510,11 @@ public class CreateOrderActivity extends BaseActivity<CreateOrderPresenter, Acti
if
(!
TextUtils
.
isEmpty
(
selectList
.
get
(
a
).
getCompressPath
())){
mImages
.
add
(
selectList
.
get
(
a
).
getCompressPath
());
}
else
{
mImages
.
add
(
selectList
.
get
(
a
).
getPath
());
String
path
=
selectList
.
get
(
a
).
getPath
();
if
(
path
.
contains
(
"content"
)){
path
=
selectList
.
get
(
a
).
getRealPath
();
}
mImages
.
add
(
path
);
}
}
if
(
mImages
.
size
()
<
10
)
{
...
...
orderCenter/src/main/java/com/dayu/order/ui/activity/MultiProcessOrderActivity.java
View file @
8afaae07
...
...
@@ -15,7 +15,6 @@ import androidx.recyclerview.widget.LinearLayoutManager;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.chad.library.adapter.base.BaseViewHolder
;
import
com.dayu.base.ui.activity.BaseActivity
;
import
com.dayu.base.ui.activity.CameraActivity
;
import
com.dayu.base.ui.adapter.PhotoViewAdapter
;
import
com.dayu.base.ui.adapter.SpacesItemDecoration
;
import
com.dayu.common.Constants
;
...
...
@@ -43,12 +42,9 @@ import org.greenrobot.eventbus.Subscribe;
import
java.io.File
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.concurrent.TimeUnit
;
import
cn.jzvd.Jzvd
;
import
cn.jzvd.JzvdStd
;
import
io.reactivex.Observable
;
import
io.reactivex.android.schedulers.AndroidSchedulers
;
/**
* Created by luofan
...
...
@@ -252,7 +248,11 @@ public class MultiProcessOrderActivity extends BaseActivity<MultiProcessOrderPre
if
(!
TextUtils
.
isEmpty
(
selectList
.
get
(
a
).
getCompressPath
()))
{
mImages
.
add
(
selectList
.
get
(
a
).
getCompressPath
());
}
else
{
mImages
.
add
(
selectList
.
get
(
a
).
getPath
());
String
path
=
selectList
.
get
(
a
).
getPath
();
if
(
path
.
contains
(
"content"
)){
path
=
selectList
.
get
(
a
).
getRealPath
();
}
mImages
.
add
(
path
);
}
}
if
(
mImages
.
size
()
<
5
)
{
...
...
@@ -281,6 +281,9 @@ public class MultiProcessOrderActivity extends BaseActivity<MultiProcessOrderPre
List
<
LocalMedia
>
mSelectList1
=
PictureSelector
.
obtainSelectorList
(
data
);
if
(
mSelectList1
!=
null
)
{
videoPath
=
mSelectList1
.
get
(
0
).
getPath
();
if
(
videoPath
.
contains
(
"content"
)){
videoPath
=
mSelectList1
.
get
(
0
).
getRealPath
();
}
File
file
=
new
File
(
videoPath
);
if
(
file
.
length
()
>
500
*
1024
*
1024
)
{
showToast
(
"视频文件不能大于500M"
);
...
...
orderCenter/src/main/java/com/dayu/order/ui/activity/MultipleProcessActivity.java
View file @
8afaae07
...
...
@@ -558,7 +558,11 @@ public class MultipleProcessActivity extends BaseActivity<MultipleProcessPresent
if
(!
TextUtils
.
isEmpty
(
mSelectList
.
get
(
a
).
getCompressPath
()))
{
mPayerImages
.
add
(
mSelectList
.
get
(
a
).
getCompressPath
());
}
else
{
mPayerImages
.
add
(
mSelectList
.
get
(
a
).
getPath
());
String
path
=
mSelectList
.
get
(
a
).
getPath
();
if
(
path
.
contains
(
"content"
)){
path
=
mSelectList
.
get
(
a
).
getRealPath
();
}
mPayerImages
.
add
(
path
);
}
}
if
(
mPayerImages
.
size
()
<
10
)
{
...
...
orderCenter/src/main/java/com/dayu/order/ui/activity/OrderPartReceiveActivity.java
View file @
8afaae07
...
...
@@ -86,7 +86,11 @@ public class OrderPartReceiveActivity extends BaseActivity<PartRecievePresenter,
if
(!
TextUtils
.
isEmpty
(
selectList
.
get
(
a
).
getCompressPath
()))
{
mImages
.
add
(
selectList
.
get
(
a
).
getCompressPath
());
}
else
{
mImages
.
add
(
selectList
.
get
(
a
).
getPath
());
String
path
=
selectList
.
get
(
a
).
getPath
();
if
(
path
.
contains
(
"content"
)){
path
=
selectList
.
get
(
a
).
getRealPath
();
}
mImages
.
add
(
path
);
}
}
if
(
mImages
.
size
()
<
maxImgCount
)
{
...
...
orderCenter/src/main/java/com/dayu/order/ui/activity/OrderPartSendActivity.java
View file @
8afaae07
...
...
@@ -154,7 +154,11 @@ public class OrderPartSendActivity extends BaseActivity<PartSendPresenter, Activ
if
(!
TextUtils
.
isEmpty
(
selectList
.
get
(
a
).
getCompressPath
()))
{
mImages
.
add
(
selectList
.
get
(
a
).
getCompressPath
());
}
else
{
mImages
.
add
(
selectList
.
get
(
a
).
getPath
());
String
path
=
selectList
.
get
(
a
).
getPath
();
if
(
path
.
contains
(
"content"
)){
path
=
selectList
.
get
(
a
).
getRealPath
();
}
mImages
.
add
(
path
);
}
}
if
(
mImages
.
size
()
<
maxImgCount
)
{
...
...
orderCenter/src/main/java/com/dayu/order/ui/activity/ProcessOrderActivity.java
View file @
8afaae07
...
...
@@ -373,7 +373,11 @@ public class ProcessOrderActivity extends BaseActivity<ProcessOrderPresenter, Ac
if
(!
TextUtils
.
isEmpty
(
mSelectList
.
get
(
a
).
getCompressPath
())){
mImages
.
add
(
mSelectList
.
get
(
a
).
getCompressPath
());
}
else
{
mImages
.
add
(
mSelectList
.
get
(
a
).
getPath
());
String
path
=
mSelectList
.
get
(
a
).
getPath
();
if
(
path
.
contains
(
"content"
)){
path
=
mSelectList
.
get
(
a
).
getRealPath
();
}
mImages
.
add
(
path
);
}
}
if
(
mImages
.
size
()
<
10
)
{
...
...
userCenter/src/main/java/com/dayu/usercenter/ui/activity2/UploadSelfLicenceActivity.java
View file @
8afaae07
...
...
@@ -145,6 +145,9 @@ public class UploadSelfLicenceActivity extends BaseActivity<SImplePresenter, Act
imgPath
=
mSelectList
.
get
(
a
).
getCompressPath
();
}
else
{
imgPath
=
mSelectList
.
get
(
a
).
getPath
();
if
(
imgPath
.
contains
(
"content"
)){
imgPath
=
mSelectList
.
get
(
a
).
getRealPath
();
}
}
GlideImageLoader
.
loadFit
(
UploadSelfLicenceActivity
.
this
,
mBind
.
ivImg
,
imgPath
);
}
...
...
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