mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 11:10:52 +00:00
Added a null check against Intent.action for SystemService::onStartCommand
This commit is contained in:
parent
0b7d61df50
commit
bae32b6d78
@ -60,7 +60,7 @@ class SystemService : Service() {
|
||||
}
|
||||
|
||||
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
|
||||
if (intent != null) {
|
||||
if (intent != null && intent.action != null) {
|
||||
when (intent.action) {
|
||||
ACTION_WAKE_UP -> wakeupNow()
|
||||
ACTION_SHUT_DOWN -> shutdownNow()
|
||||
|
Loading…
Reference in New Issue
Block a user