Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
S
scanqrwhitecopy
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
scanqrwhitecopy
Commits
cad068df
Commit
cad068df
authored
Jan 22, 2025
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
..
parent
10b539a0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
3 deletions
+14
-3
NotificationUiUtil.kt
...m/base/scanqrclear/fcm/notification/NotificationUiUtil.kt
+8
-0
WriteLogEx.kt
app/src/main/java/com/base/scanqrclear/utils/WriteLogEx.kt
+2
-0
notification_constellation_big.xml
app/src/main/res/layout/notification_constellation_big.xml
+1
-1
themes.xml
app/src/main/res/values-night/themes.xml
+1
-1
themes.xml
app/src/main/res/values/themes.xml
+2
-1
No files found.
app/src/main/java/com/base/scanqrclear/fcm/notification/NotificationUiUtil.kt
View file @
cad068df
...
@@ -173,6 +173,14 @@ object NotificationUiUtil {
...
@@ -173,6 +173,14 @@ object NotificationUiUtil {
ACTION_ID_CONSTELLATION
->
{
ACTION_ID_CONSTELLATION
->
{
val
smallRemoteViews
=
RemoteViews
(
MyApplication
.
appContext
.
packageName
,
R
.
layout
.
notification_constellation_small
)
val
smallRemoteViews
=
RemoteViews
(
MyApplication
.
appContext
.
packageName
,
R
.
layout
.
notification_constellation_small
)
val
bigRemoteViews
=
RemoteViews
(
MyApplication
.
appContext
.
packageName
,
R
.
layout
.
notification_constellation_big
)
val
bigRemoteViews
=
RemoteViews
(
MyApplication
.
appContext
.
packageName
,
R
.
layout
.
notification_constellation_big
)
val
content
=
arrayOf
(
"Your daily horoscope has the answers you seek. Click to discover!"
,
"Your horoscope opens new doors. Click to unlock your destiny!"
,
"Today's horoscope reveals life-changing secrets. Click to see!"
,
"Your daily horoscope maps your path to success. Click to find it!"
).
random
()
smallRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
content
)
bigRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
content
)
sendBean
.
bigRemoteViews
=
bigRemoteViews
sendBean
.
bigRemoteViews
=
bigRemoteViews
sendBean
.
smallRemoteViews
=
smallRemoteViews
sendBean
.
smallRemoteViews
=
smallRemoteViews
...
...
app/src/main/java/com/base/scanqrclear/utils/WriteLogEx.kt
View file @
cad068df
...
@@ -5,6 +5,7 @@ import com.base.scanqrclear.BuildConfig
...
@@ -5,6 +5,7 @@ import com.base.scanqrclear.BuildConfig
import
com.base.scanqrclear.MyApplication
import
com.base.scanqrclear.MyApplication
import
com.base.scanqrclear.R
import
com.base.scanqrclear.R
import
com.base.scanqrclear.utils.KotlinExt.toFormatTime2
import
com.base.scanqrclear.utils.KotlinExt.toFormatTime2
import
com.base.scanqrclear.utils.PermissionUtils.checkStorePermission
import
java.io.File
import
java.io.File
object
WriteLogEx
{
object
WriteLogEx
{
...
@@ -17,6 +18,7 @@ object WriteLogEx {
...
@@ -17,6 +18,7 @@ object WriteLogEx {
fun
writeLogFile
(
key
:
String
,
log
:
String
)
{
fun
writeLogFile
(
key
:
String
,
log
:
String
)
{
if
(!
BuildConfig
.
DEBUG
)
return
if
(!
BuildConfig
.
DEBUG
)
return
if
(!
MyApplication
.
appContext
.
checkStorePermission
())
return
val
logName
=
key
+
"_"
+
System
.
currentTimeMillis
().
toFormatTime2
()
+
".txt"
val
logName
=
key
+
"_"
+
System
.
currentTimeMillis
().
toFormatTime2
()
+
".txt"
val
logFile
=
File
(
logoDir
,
logName
)
val
logFile
=
File
(
logoDir
,
logName
)
logFile
.
createNewFile
()
logFile
.
createNewFile
()
...
...
app/src/main/res/layout/notification_constellation_big.xml
View file @
cad068df
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
<TextView
android:id=
"@+id/tv_
tittle_1
"
android:id=
"@+id/tv_
desc
"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Check out your luck today!"
android:text=
"Check out your luck today!"
...
...
app/src/main/res/values-night/themes.xml
View file @
cad068df
<resources
xmlns:tools=
"http://schemas.android.com/tools"
>
<resources
xmlns:tools=
"http://schemas.android.com/tools"
>
<!-- Base application theme. -->
<!-- Base application theme. -->
<style
name=
"Base.Theme.ScanQR"
parent=
"Theme.Material3.
DayN
ight.NoActionBar"
>
<style
name=
"Base.Theme.ScanQR"
parent=
"Theme.Material3.
L
ight.NoActionBar"
>
<!-- Customize your dark theme here. -->
<!-- Customize your dark theme here. -->
<!-- <item name="colorPrimary">@color/my_dark_primary</item> -->
<!-- <item name="colorPrimary">@color/my_dark_primary</item> -->
</style>
</style>
...
...
app/src/main/res/values/themes.xml
View file @
cad068df
<resources
xmlns:tools=
"http://schemas.android.com/tools"
>
<resources
xmlns:tools=
"http://schemas.android.com/tools"
>
<!-- Base application theme. -->
<!-- Base application theme. -->
<style
name=
"Base.Theme.ScanQR"
parent=
"Theme.Material3.
DayN
ight.NoActionBar"
>
<style
name=
"Base.Theme.ScanQR"
parent=
"Theme.Material3.
L
ight.NoActionBar"
>
</style>
</style>
...
@@ -72,6 +72,7 @@
...
@@ -72,6 +72,7 @@
<style
name=
"BottomSheetDialog"
parent=
"Theme.Design.Light.BottomSheetDialog"
>
<style
name=
"BottomSheetDialog"
parent=
"Theme.Design.Light.BottomSheetDialog"
>
<item
name=
"bottomSheetStyle"
>
@style/BottomSheetStyleWrapper
</item>
<item
name=
"bottomSheetStyle"
>
@style/BottomSheetStyleWrapper
</item>
</style>
</style>
<style
name=
"BottomSheetStyleWrapper"
parent=
"Widget.Design.BottomSheet.Modal"
>
<style
name=
"BottomSheetStyleWrapper"
parent=
"Widget.Design.BottomSheet.Modal"
>
<item
name=
"android:background"
>
@android:color/transparent
</item>
<item
name=
"android:background"
>
@android:color/transparent
</item>
</style>
</style>
...
...
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