6.6.2 - Alpha5 - 重新设计应用的状态栏图标
This commit is contained in:
@@ -50,7 +50,7 @@ public class ForegroundServiceUtils {
|
||||
.setContentTitle(title)
|
||||
.setContentText(content)
|
||||
.setContentIntent(contentIntent)
|
||||
.setSmallIcon(R.drawable.autojs6_material)
|
||||
.setSmallIcon(R.drawable.autojs6_status_bar_icon)
|
||||
.setAutoCancel(true)
|
||||
.setOngoing(false)
|
||||
.setSilent(true)
|
||||
|
||||
@@ -96,7 +96,7 @@ object NotificationUtils {
|
||||
title?.let { setContentTitle(it) }
|
||||
content?.let { setContentText(it) }
|
||||
bigContent?.let { setStyle(NotificationCompat.BigTextStyle().bigText(it)) }
|
||||
setSmallIcon(R.drawable.autojs6_material)
|
||||
setSmallIcon(R.drawable.autojs6_status_bar_icon)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ object NotificationUtils {
|
||||
@Suppress("DEPRECATION")
|
||||
return NotificationCompat.Builder(globalAppContext)
|
||||
.apply {
|
||||
setSmallIcon(R.drawable.autojs6_material)
|
||||
setSmallIcon(R.drawable.autojs6_status_bar_icon)
|
||||
/**
|
||||
* For Android 7.1 and below only.
|
||||
*/
|
||||
|
||||
BIN
app/src/main/res/drawable/autojs6_status_bar_icon.png
Normal file
BIN
app/src/main/res/drawable/autojs6_status_bar_icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.5 KiB |
Reference in New Issue
Block a user