mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-21 13:18:56 +07:00
Unciv Adaptive Android Icon (#6672)
* Use both icon and roundIcon properties * Studio-generated Android Icon * Studio-generated Android Icon to fastlane Co-authored-by: JackRainy <JackRainy@users.noreply.github.com>
This commit is contained in:
@ -128,7 +128,7 @@ class MultiplayerTurnCheckWorker(appContext: Context, workerParams: WorkerParame
|
||||
appContext.resources.getString(R.string.Notify_Persist_Long_P2) + " " + checkPeriod + " "
|
||||
+ appContext.resources.getString(R.string.Notify_Persist_Long_P3)
|
||||
+ " " + appContext.resources.getString(R.string.Notify_Persist_Long_P4)))
|
||||
.setSmallIcon(R.drawable.uncivicon2)
|
||||
.setSmallIcon(R.drawable.uncivnotification)
|
||||
.setContentIntent(pendingIntent)
|
||||
.setCategory(NotificationCompat.CATEGORY_SERVICE)
|
||||
.setOnlyAlertOnce(true)
|
||||
@ -156,7 +156,7 @@ class MultiplayerTurnCheckWorker(appContext: Context, workerParams: WorkerParame
|
||||
// without at least vibrate, some Android versions don't show a heads-up notification
|
||||
.setDefaults(DEFAULT_VIBRATE)
|
||||
.setLights(Color.YELLOW, 300, 100)
|
||||
.setSmallIcon(R.drawable.uncivicon2)
|
||||
.setSmallIcon(R.drawable.uncivnotification)
|
||||
.setContentIntent(pendingIntent)
|
||||
.setCategory(NotificationCompat.CATEGORY_SOCIAL)
|
||||
.setOngoing(false)
|
||||
@ -348,7 +348,7 @@ class MultiplayerTurnCheckWorker(appContext: Context, workerParams: WorkerParame
|
||||
.setPriority(NotificationManagerCompat.IMPORTANCE_DEFAULT) // No direct user action expected
|
||||
.setContentTitle(applicationContext.resources.getString(R.string.Notify_Error_Short))
|
||||
.setContentText(applicationContext.resources.getString(R.string.Notify_Error_Long))
|
||||
.setSmallIcon(R.drawable.uncivicon2)
|
||||
.setSmallIcon(R.drawable.uncivnotification)
|
||||
// without at least vibrate, some Android versions don't show a heads-up notification
|
||||
.setDefaults(DEFAULT_VIBRATE)
|
||||
.setLights(Color.YELLOW, 300, 100)
|
||||
|
Reference in New Issue
Block a user