Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Sobot_module_Dev
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sobot_android
Sobot_module_Dev
Commits
1b4e8b61
Commit
1b4e8b61
authored
Apr 19, 2024
by
zhengnw@sobot.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
album 1.0.3
parent
c4706238
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
27 deletions
+7
-27
sobot-album_publish-mavencentral.gradle
sobot_album/sobot-album_publish-mavencentral.gradle
+1
-1
AlbumActivity.java
...rc/main/java/com/sobot/album/app/album/AlbumActivity.java
+4
-18
MediaReader.java
...main/java/com/sobot/album/app/album/data/MediaReader.java
+2
-8
No files found.
sobot_album/sobot-album_publish-mavencentral.gradle
View file @
1b4e8b61
...
...
@@ -12,7 +12,7 @@ task androidSourcesJar(type: Jar) {
ext
{
PUBLISH_GROUP_ID
=
"com.sobot.library"
//项目包名
PUBLISH_ARTIFACT_ID
=
'album'
//项目名
PUBLISH_VERSION
=
'1.0.
2
'
//版本号
PUBLISH_VERSION
=
'1.0.
3
'
//版本号
}
...
...
sobot_album/src/main/java/com/sobot/album/app/album/AlbumActivity.java
View file @
1b4e8b61
...
...
@@ -133,24 +133,10 @@ public class AlbumActivity extends SobotBaseActivity implements
mMediaReadTask.execute();
}
}*/
//是否是获取了选取部分的图片
if
(
ContextCompat
.
checkSelfPermission
(
AlbumActivity
.
this
,
Manifest
.
permission
.
READ_MEDIA_VISUAL_USER_SELECTED
)==
PackageManager
.
PERMISSION_GRANTED
)
{
new
Handler
().
postDelayed
(
new
Runnable
()
{
@Override
public
void
run
()
{
ArrayList
<
AlbumFile
>
checkedList
=
getIntent
().
getParcelableArrayListExtra
(
SobotAlbum
.
KEY_INPUT_CHECKED_LIST
);
MediaReader
mediaReader
=
new
MediaReader
(
AlbumActivity
.
this
,
sSizeFilter
,
sMimeFilter
,
sDurationFilter
,
mFilterVisibility
);
mMediaReadTask
=
new
MediaReadTask
(
mFunction
,
checkedList
,
mediaReader
,
AlbumActivity
.
this
);
mMediaReadTask
.
execute
();
}
},
2000
);
}
else
{
ArrayList
<
AlbumFile
>
checkedList
=
getIntent
().
getParcelableArrayListExtra
(
SobotAlbum
.
KEY_INPUT_CHECKED_LIST
);
MediaReader
mediaReader
=
new
MediaReader
(
AlbumActivity
.
this
,
sSizeFilter
,
sMimeFilter
,
sDurationFilter
,
mFilterVisibility
);
mMediaReadTask
=
new
MediaReadTask
(
mFunction
,
checkedList
,
mediaReader
,
AlbumActivity
.
this
);
mMediaReadTask
.
execute
();
}
ArrayList
<
AlbumFile
>
checkedList
=
getIntent
().
getParcelableArrayListExtra
(
SobotAlbum
.
KEY_INPUT_CHECKED_LIST
);
MediaReader
mediaReader
=
new
MediaReader
(
AlbumActivity
.
this
,
sSizeFilter
,
sMimeFilter
,
sDurationFilter
,
mFilterVisibility
);
mMediaReadTask
=
new
MediaReadTask
(
mFunction
,
checkedList
,
mediaReader
,
AlbumActivity
.
this
);
mMediaReadTask
.
execute
();
}
private
void
initializeArgument
()
{
...
...
sobot_album/src/main/java/com/sobot/album/app/album/data/MediaReader.java
View file @
1b4e8b61
...
...
@@ -96,9 +96,7 @@ public class MediaReader {
null
);
if
(
cursor
!=
null
)
{
if
(
cursor
.
moveToFirst
()){
SobotLogUtils
.
d
(
"======图片总数======="
+
cursor
.
getCount
());
}
SobotLogUtils
.
d
(
"======图片总数======="
+
cursor
.
getCount
());
while
(
cursor
.
moveToNext
())
{
String
path
=
cursor
.
getString
(
0
);
String
bucketName
=
cursor
.
getString
(
1
);
...
...
@@ -184,11 +182,7 @@ public class MediaReader {
null
);
SobotLogUtils
.
d
(
"======scanVideoFile======="
+(
cursor
==
null
));
if
(
cursor
!=
null
)
{
if
(
cursor
.
moveToFirst
()){
SobotLogUtils
.
d
(
"======视频总数======="
+
cursor
.
getCount
());
}
else
{
SobotLogUtils
.
d
(
"======未找到任何视频======="
+
cursor
.
getCount
());
}
SobotLogUtils
.
d
(
"======视频总数======="
+
cursor
.
getCount
());
while
(
cursor
.
moveToNext
())
{
String
path
=
cursor
.
getString
(
0
);
String
bucketName
=
cursor
.
getString
(
1
);
...
...
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