Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
S
Solar Master Ace
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
Solar Master Ace
Commits
4b2cd782
Commit
4b2cd782
authored
Mar 22, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:白包修改
parent
9918d474
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
4 deletions
+23
-4
deploymentTargetDropDown.xml
.idea/deploymentTargetDropDown.xml
+14
-1
DataStoreEx.kt
...ain/java/com/zxhy/solarmasterace/datastore/DataStoreEx.kt
+3
-3
ToolsFragment.kt
.../main/java/com/zxhy/solarmasterace/tools/ToolsFragment.kt
+3
-0
fragment_tools.xml
app/src/main/res/layout/fragment_tools.xml
+3
-0
No files found.
.idea/deploymentTargetDropDown.xml
View file @
4b2cd782
...
...
@@ -3,7 +3,20 @@
<component
name=
"deploymentTargetDropDown"
>
<value>
<entry
key=
"app"
>
<State
/>
<State>
<runningDeviceTargetSelectedWithDropDown>
<Target>
<type
value=
"RUNNING_DEVICE_TARGET"
/>
<deviceKey>
<Key>
<type
value=
"SERIAL_NUMBER"
/>
<value
value=
"adb-RF9N8045MAW-sXXAeN._adb-tls-connect._tcp"
/>
</Key>
</deviceKey>
</Target>
</runningDeviceTargetSelectedWithDropDown>
<timeTargetWasSelectedWithDropDown
value=
"2024-03-22T01:27:31.767940Z"
/>
</State>
</entry>
</value>
</component>
...
...
app/src/main/java/com/zxhy/solarmasterace/datastore/DataStoreEx.kt
View file @
4b2cd782
...
...
@@ -36,12 +36,12 @@ suspend fun Context.queryFileCount(key: Preferences.Key<Int>, action: (count: In
dataStore
.
data
.
map
{
it
[
EMPTY_FILE_COUNTER_KEY
]
}
}
else
->
null
else
->
flowOf
(
0
)
}
flow
?.
collect
{
flow
.
collect
{
if
(
it
!=
null
)
{
action
.
invoke
(
it
)
}
}
}
\ No newline at end of file
app/src/main/java/com/zxhy/solarmasterace/tools/ToolsFragment.kt
View file @
4b2cd782
...
...
@@ -97,6 +97,7 @@ class ToolsFragment : Fragment() {
if
(
count
==
0
)
{
binding
.
tvDupCout
.
visibility
=
View
.
GONE
}
else
{
binding
.
tvDupCout
.
visibility
=
View
.
VISIBLE
binding
.
tvDupCout
.
text
=
"$count items"
}
}
...
...
@@ -108,6 +109,7 @@ class ToolsFragment : Fragment() {
if
(
count
==
0
)
{
binding
.
tvLargeCount
.
visibility
=
View
.
GONE
}
else
{
binding
.
tvLargeCount
.
visibility
=
View
.
VISIBLE
binding
.
tvLargeCount
.
text
=
"$count items"
}
}
...
...
@@ -120,6 +122,7 @@ class ToolsFragment : Fragment() {
if
(
dupCount
==
0
)
{
binding
.
tvEmptyCount
.
visibility
=
View
.
GONE
}
else
{
binding
.
tvEmptyCount
.
visibility
=
View
.
VISIBLE
binding
.
tvEmptyCount
.
text
=
"$dupCount items"
}
}
...
...
app/src/main/res/layout/fragment_tools.xml
View file @
4b2cd782
...
...
@@ -65,6 +65,7 @@
tools:ignore=
"HardcodedText"
/>
<TextView
android:visibility=
"gone"
android:id=
"@+id/tv_dup_cout"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
...
...
@@ -133,6 +134,7 @@
tools:ignore=
"HardcodedText"
/>
<TextView
android:visibility=
"gone"
android:id=
"@+id/tv_large_count"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
...
...
@@ -202,6 +204,7 @@
tools:ignore=
"HardcodedText"
/>
<TextView
android:visibility=
"gone"
android:id=
"@+id/tv_empty_count"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
...
...
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