瀏覽代碼

Fix iOS toasts

Vishnu Mohandas 4 年之前
父節點
當前提交
dada941088
共有 2 個文件被更改,包括 1 次插入5 次删除
  1. 0 4
      lib/utils/delete_file_util.dart
  2. 1 1
      lib/utils/toast_util.dart

+ 0 - 4
lib/utils/delete_file_util.dart

@@ -154,10 +154,6 @@ Future<bool> deleteLocalFiles(
     _logger.info(deletedFiles.length.toString() + " files deleted locally");
     Bus.instance
         .fire(LocalPhotosUpdatedEvent(deletedFiles, type: EventType.deleted));
-    if (Platform.isIOS) {
-      showToast(
-          "also empty \"Recently Deleted\" from Settings to claim the freed up space");
-    }
     return true;
   } else {
     showToast("could not free up space");

+ 1 - 1
lib/utils/toast_util.dart

@@ -22,7 +22,7 @@ Future<void> showToast(String message, {toastLength: Toast.LENGTH_LONG}) {
       ..loadingStyle = EasyLoadingStyle.custom;
     return EasyLoading.showToast(
       message,
-      duration: Duration(seconds: (toastLength == Toast.LENGTH_LONG ? 4 : 3)),
+      duration: Duration(seconds: (toastLength == Toast.LENGTH_LONG ? 6 : 3)),
       toastPosition: EasyLoadingToastPosition.bottom,
     );
   }