Removed pebble symbol from Unciv icon when showing persistent notification (#2003)

Optimized Notification service texts
https://github.com/yairm210/Unciv/issues/1680
This commit is contained in:
wrov
2020-02-23 19:45:25 +01:00
committed by GitHub
parent 6009c1b5d3
commit 31d9bb0c5d
4 changed files with 45 additions and 18 deletions

View File

@ -12,7 +12,7 @@ import java.io.File
class AndroidLauncher : AndroidApplication() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
createNotificationChannels()
MultiplayerTurnCheckWorker.createNotificationChannels(applicationContext)
// Only allow mods on KK+, to avoid READ_EXTERNAL_STORAGE permission earlier versions need
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
@ -26,14 +26,6 @@ class AndroidLauncher : AndroidApplication() {
initialize(game, config)
}
/**
* Necessary for Multiplayer Turner Checker, starting with Android Oreo
*/
private fun createNotificationChannels() {
MultiplayerTurnCheckWorker.createNotificationChannelInfo(context)
MultiplayerTurnCheckWorker.createNotificationChannelService(context)
}
/**
* Copies mods from external data directory (where users can access) to the private one (where
* libGDX reads from). Note: deletes all files currently in the private mod directory and