Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
P
PhoneManager
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yang
PhoneManager
Commits
172df967
Commit
172df967
authored
May 23, 2025
by
shenyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bus
parent
5c70d6fe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
HomeView.swift
PhoneManager/Class/Page/Home/View/HomeView.swift
+5
-0
HomeVideoCoverCell.swift
...anager/Class/Page/Home/View/cell/HomeVideoCoverCell.swift
+7
-6
No files found.
PhoneManager/Class/Page/Home/View/HomeView.swift
View file @
172df967
...
@@ -100,6 +100,11 @@ class HomeView:UIView {
...
@@ -100,6 +100,11 @@ class HomeView:UIView {
weakSelf
.
reloadHeadSize
()
weakSelf
.
reloadHeadSize
()
}
}
}
}
NotificationCenter
.
default
.
addObserver
(
forName
:
Notification
.
Name
(
"applicationDidBecomeActive"
),
object
:
nil
,
queue
:
nil
)
{[
weak
self
]
_
in
guard
let
weakSelf
=
self
else
{
return
}
weakSelf
.
collectionView
.
reloadData
()
}
}
}
func
reloadHeadSize
(){
func
reloadHeadSize
(){
...
...
PhoneManager/Class/Page/Home/View/cell/HomeVideoCoverCell.swift
View file @
172df967
...
@@ -60,6 +60,12 @@ class HomeVideoCoverCell: UICollectionViewCell {
...
@@ -60,6 +60,12 @@ class HomeVideoCoverCell: UICollectionViewCell {
self
.
sizeLabel
.
text
=
String
(
format
:
"(%.2lf) GB"
,
sizeKB
/
(
1000
*
1000
))
self
.
sizeLabel
.
text
=
String
(
format
:
"(%.2lf) GB"
,
sizeKB
/
(
1000
*
1000
))
}
}
if
videoPlayer
.
rate
==
0
,
videoPlayer
.
currentItem
!=
nil
{
videoPlayer
.
seek
(
to
:
.
zero
)
videoPlayer
.
play
()
}
// 2. 设置新数据
// 2. 设置新数据
if
let
id
=
model
.
assets
.
first
?
.
first
?
.
localIdentifier
{
if
let
id
=
model
.
assets
.
first
?
.
first
?
.
localIdentifier
{
// 保存当前的 identifier 用于验证
// 保存当前的 identifier 用于验证
...
@@ -213,12 +219,7 @@ extension HomeVideoCoverCell{
...
@@ -213,12 +219,7 @@ extension HomeVideoCoverCell{
return
return
}
}
playerLayer
.
isHidden
=
false
playerLayer
.
isHidden
=
false
if
videoPlayer
.
rate
==
0
,
videoPlayer
.
currentItem
!=
nil
{
videoPlayer
.
seek
(
to
:
.
zero
)
videoPlayer
.
play
()
}
if
videoURL
==
videoUrl
{
if
videoURL
==
videoUrl
{
// Print("地址相同,无需刷新")
// Print("地址相同,无需刷新")
return
return
...
...
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