ashilkn 1 год назад
Родитель
Сommit
c15db39240
2 измененных файлов с 3 добавлено и 3 удалено
  1. 2 2
      lib/services/update_service.dart
  2. 1 1
      lib/ui/tabs/home_widget.dart

+ 2 - 2
lib/services/update_service.dart

@@ -73,7 +73,7 @@ class UpdateService {
     return _latestVersion;
     return _latestVersion;
   }
   }
 
 
-  Future<bool> canShowUpdateNoification() async {
+  Future<bool> shouldShowUpdateNoification() async {
     final shouldUpdate = await this.shouldUpdate();
     final shouldUpdate = await this.shouldUpdate();
 
 
     final lastNotificationShownTime =
     final lastNotificationShownTime =
@@ -87,7 +87,7 @@ class UpdateService {
   }
   }
 
 
   Future<void> showUpdateNotification() async {
   Future<void> showUpdateNotification() async {
-    if (await canShowUpdateNoification()) {
+    if (await shouldShowUpdateNoification()) {
       // ignore: unawaited_futures
       // ignore: unawaited_futures
       NotificationService.instance.showNotification(
       NotificationService.instance.showNotification(
         "Update available",
         "Update available",

+ 1 - 1
lib/ui/tabs/home_widget.dart

@@ -194,7 +194,7 @@ class _HomeWidgetState extends State<HomeWidget> {
       },
       },
     );
     );
     _initDeepLinks();
     _initDeepLinks();
-    UpdateService.instance.canShowUpdateNoification().then((value) {
+    UpdateService.instance.shouldShowUpdateNoification().then((value) {
       Future.delayed(Duration.zero, () {
       Future.delayed(Duration.zero, () {
         if (value) {
         if (value) {
           showDialog(
           showDialog(