Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
S
scanqrwhite2copy1
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
scanqrwhite2copy1
Commits
665c2166
Commit
665c2166
authored
Feb 13, 2025
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
c3d60e98
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
19 deletions
+15
-19
MyNotificationManager.kt
...ase/scanqrclear/fcm/notification/MyNotificationManager.kt
+1
-1
HistoryFragment.kt
...main/java/com/base/scanqrclear/ui/main/HistoryFragment.kt
+14
-12
HistoryViewModel.kt
...ain/java/com/base/scanqrclear/ui/main/HistoryViewModel.kt
+0
-6
earthquake.png
app/src/main/res/mipmap-xxhdpi/earthquake.png
+0
-0
No files found.
app/src/main/java/com/base/scanqrclear/fcm/notification/MyNotificationManager.kt
View file @
665c2166
...
...
@@ -91,7 +91,7 @@ object MyNotificationManager {
val
next
=
actionIdList
[
0
]
actionIdList
.
removeAt
(
0
)
if
(
BuildConfig
.
DEBUG
)
{
return
ACTION_ID_
WEATHER_2
return
ACTION_ID_
EARTHQUAKE
}
return
next
}
...
...
app/src/main/java/com/base/scanqrclear/ui/main/HistoryFragment.kt
View file @
665c2166
...
...
@@ -45,6 +45,7 @@ class HistoryFragment : BaseFragment<FragmentHistoryBinding>(FragmentHistoryBind
super
.
initView
()
binding
.
flTop
.
updatePadding
(
top
=
BarUtils
.
getStatusBarHeight
())
}
override
fun
onResume
()
{
super
.
onResume
()
immersionBar
{
...
...
@@ -52,16 +53,6 @@ class HistoryFragment : BaseFragment<FragmentHistoryBinding>(FragmentHistoryBind
statusBarDarkFont
(
true
)
}
if
(
adsConfigBean
.
historyShowNative
)
{
if
(
viewModel
.
showHistoryTabNative
())
{
binding
.
flAd
.
visibility
=
View
.
VISIBLE
AdsMgr
.
showNative
(
binding
.
flAd
,
R
.
layout
.
layout_admob_item
)
}
else
{
binding
.
flAd
.
visibility
=
View
.
GONE
}
}
else
{
binding
.
flAd
.
visibility
=
View
.
GONE
}
}
...
...
@@ -218,7 +209,19 @@ class HistoryFragment : BaseFragment<FragmentHistoryBinding>(FragmentHistoryBind
val
createList
=
viewModel
.
historyList
.
filter
{
it
.
createType
==
qrState
}
binding
.
llEmpty
.
isVisible
=
createList
.
isEmpty
()
val
sortList
=
sortList
(
createList
)
adapter
?.
submitList
(
sortList
.
addStepElements
{
AdScanBean
()
})
val
adBeanList
=
sortList
.
addStepElements
{
AdScanBean
()
}
adapter
?.
submitList
(
adBeanList
)
if
(
adsConfigBean
.
historyShowNative
)
{
if
(
adBeanList
.
any
{
it
is
AdScanBean
})
{
binding
.
flAd
.
visibility
=
View
.
GONE
}
else
{
binding
.
flAd
.
visibility
=
View
.
VISIBLE
AdsMgr
.
showNative
(
binding
.
flAd
,
R
.
layout
.
layout_admob_item
)
}
}
else
{
binding
.
flAd
.
visibility
=
View
.
GONE
}
}
if
(
viewModel
.
dataRefreshFinish
.
get
())
{
uiRefresh
.
invoke
()
...
...
@@ -261,7 +264,6 @@ class HistoryFragment : BaseFragment<FragmentHistoryBinding>(FragmentHistoryBind
}
companion
object
{
var
tab
:
Int
=
0
// create=0 scan=1
const
val
SORT_NAME
=
"sort_name"
...
...
app/src/main/java/com/base/scanqrclear/ui/main/HistoryViewModel.kt
View file @
665c2166
...
...
@@ -26,12 +26,6 @@ class HistoryViewModel() : ViewModel() {
var
historyList
=
arrayListOf
<
ScanBean
>()
fun
showHistoryTabNative
():
Boolean
{
return
historyList
.
filter
{
it
.
createType
==
CREATE_TYPE_USER
}.
size
<
3
&&
historyList
.
filter
{
it
.
createType
==
CREATE_TYPE_SCAN
}.
size
<
3
}
var
dataRefreshFinish
=
AtomicBoolean
(
false
)
var
dataRefreshBack
:
(()
->
Unit
)?
=
null
...
...
app/src/main/res/mipmap-xxhdpi/earthquake.png
View replaced file @
c3d60e98
View file @
665c2166
2.3 KB
|
W:
|
H:
1.81 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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