Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
L
location share white
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
wanglei
location share white
Commits
4ded2da4
Commit
4ded2da4
authored
Feb 25, 2025
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
a01efde0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
LocationShareActivity.kt
.../base/locationsharewhite/ui/main/LocationShareActivity.kt
+4
-4
No files found.
app/src/main/java/com/base/locationsharewhite/ui/main/LocationShareActivity.kt
View file @
4ded2da4
...
@@ -47,7 +47,7 @@ class LocationShareActivity : BaseActivity<ActivityLocationShareBinding>() {
...
@@ -47,7 +47,7 @@ class LocationShareActivity : BaseActivity<ActivityLocationShareBinding>() {
override
val
binding
:
ActivityLocationShareBinding
by
lazy
{
override
val
binding
:
ActivityLocationShareBinding
by
lazy
{
ActivityLocationShareBinding
.
inflate
(
layoutInflater
)
ActivityLocationShareBinding
.
inflate
(
layoutInflater
)
}
}
private
lateinit
var
adapter
:
ViewerAdapter
private
var
adapter
:
ViewerAdapter
?
=
null
@SuppressLint
(
"NotifyDataSetChanged"
)
@SuppressLint
(
"NotifyDataSetChanged"
)
...
@@ -97,7 +97,7 @@ class LocationShareActivity : BaseActivity<ActivityLocationShareBinding>() {
...
@@ -97,7 +97,7 @@ class LocationShareActivity : BaseActivity<ActivityLocationShareBinding>() {
}
}
}
}
})
})
adapter
.
moreAction
=
{
anchorView
,
viewerBean
->
adapter
?
.
moreAction
=
{
anchorView
,
viewerBean
->
showViewerMoreDialog
(
anchorView
,
deleteAction
=
{
showViewerMoreDialog
(
anchorView
,
deleteAction
=
{
LocationShareListUtils
.
deleteShare
(
viewerBean
.
device
)
{
LocationShareListUtils
.
deleteShare
(
viewerBean
.
device
)
{
runOnUiThread
{
runOnUiThread
{
...
@@ -238,11 +238,11 @@ class LocationShareActivity : BaseActivity<ActivityLocationShareBinding>() {
...
@@ -238,11 +238,11 @@ class LocationShareActivity : BaseActivity<ActivityLocationShareBinding>() {
private
fun
refreshNickName
()
=
lifecycleScope
.
launch
(
Dispatchers
.
IO
)
{
private
fun
refreshNickName
()
=
lifecycleScope
.
launch
(
Dispatchers
.
IO
)
{
val
nickList
=
SpStringUtils
.
getSpStringList
(
VIEWER_NICKNAME_KEY
)
val
nickList
=
SpStringUtils
.
getSpStringList
(
VIEWER_NICKNAME_KEY
)
adapter
.
items
.
map
{
viewer
->
adapter
?.
items
?
.
map
{
viewer
->
changeLocalNickName
(
viewer
,
nickList
)
changeLocalNickName
(
viewer
,
nickList
)
}
}
launch
(
Dispatchers
.
Main
)
{
launch
(
Dispatchers
.
Main
)
{
adapter
.
notifyDataSetChanged
()
adapter
?
.
notifyDataSetChanged
()
}
}
}
}
...
...
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