Log the null AppWidgetManager

This commit is contained in:
Ilya Bizyaev 2023-05-10 21:54:13 +02:00
parent f647e50a2e
commit 1f45c2c391
No known key found for this signature in database
GPG key ID: 29AACC9F9F66C5B4

View file

@ -23,6 +23,9 @@ class MessageListWidgetManager(
fun init() {
appWidgetManager = AppWidgetManager.getInstance(context)
if (appWidgetManager == null) {
Timber.v("Message list widget is not supported on this device.")
}
if (isAtLeastOneMessageListWidgetAdded()) {
resetMessageListWidget()