mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-06-05 22:19:17 +02:00
make sure the widget gets updated when the time/timezone or alarm changes
This commit is contained in:
@ -0,0 +1,12 @@
|
||||
package com.simplemobiletools.clock.receivers
|
||||
|
||||
import android.content.BroadcastReceiver
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import com.simplemobiletools.clock.extensions.updateWidgets
|
||||
|
||||
class UpdateWidgetReceiver : BroadcastReceiver() {
|
||||
override fun onReceive(context: Context, intent: Intent) {
|
||||
context.updateWidgets()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user