From 5c48308d8b61063421840db2af712c6441ccbb85 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Mon, 10 Oct 2022 04:14:27 +0530 Subject: [PATCH 1/2] bump version code to 0.6.41+371 --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 0fd176974..69b285d8d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,7 +11,7 @@ description: ente photos application # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 0.6.40+370 +version: 0.6.41+371 environment: sdk: '>=2.12.0 <3.0.0' From 2a10e8ceb2aeba5c3858e5bd608704fc49aed2a4 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Mon, 10 Oct 2022 04:21:15 +0530 Subject: [PATCH 2/2] Do not surface error on UI --- lib/ui/collections/device_folders_grid_view_widget.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ui/collections/device_folders_grid_view_widget.dart b/lib/ui/collections/device_folders_grid_view_widget.dart index 5a3474cae..1f5b8e73c 100644 --- a/lib/ui/collections/device_folders_grid_view_widget.dart +++ b/lib/ui/collections/device_folders_grid_view_widget.dart @@ -3,6 +3,7 @@ import 'dart:async'; import 'package:flutter/material.dart'; +import 'package:logging/logging.dart'; import 'package:photos/core/event_bus.dart'; import 'package:photos/db/device_files_db.dart'; import 'package:photos/db/files_db.dart'; @@ -40,6 +41,7 @@ class _DeviceFoldersGridViewWidgetState @override Widget build(BuildContext context) { + final logger = Logger((_DeviceFoldersGridViewWidgetState).toString()); final bool isMigrationDone = LocalSyncService.instance.isDeviceFileMigrationDone(); return Padding( @@ -75,7 +77,8 @@ class _DeviceFoldersGridViewWidgetState itemCount: snapshot.data.length, ); } else if (snapshot.hasError) { - return Text(snapshot.error.toString()); + logger.severe("failed to load device galler", snapshot.error); + return const Text("Failed to load albums"); } else { return const EnteLoadingWidget(); }