improved performance and battery usage on older devices
This commit is contained in:
@@ -5,6 +5,7 @@ import 'dart:developer';
|
||||
import 'package:home_widget/home_widget.dart';
|
||||
|
||||
import 'widget_data.dart';
|
||||
import 'widget_publisher.dart';
|
||||
|
||||
/// Bridge to the native widget host. All keys/names live here so the Kotlin
|
||||
/// and Swift sides stay in sync.
|
||||
@@ -109,6 +110,7 @@ class WidgetSync {
|
||||
}
|
||||
|
||||
static Future<void> clear() async {
|
||||
WidgetPublisher.resetDedupe();
|
||||
await ensureInitialized();
|
||||
await HomeWidget.saveWidgetData<String>(dayDataKey, null);
|
||||
await HomeWidget.saveWidgetData<String>(weekDataKey, null);
|
||||
|
||||
Reference in New Issue
Block a user