Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix

AmanRajSinghMourya3b9860844a1c
diff --git a/mobile/apps/photos/lib/ui/components/banners/ml_progress_banner.dart b/mobile/apps/photos/lib/ui/components/banners/ml_progress_banner.dart
index ace033d011..e5982ad39d 100644
--- a/mobile/apps/photos/lib/ui/components/banners/ml_progress_banner.dart
+++ b/mobile/apps/photos/lib/ui/components/banners/ml_progress_banner.dart
@@ -115,7 +115,6 @@ class _MLProgressBannerState extends State<MLProgressBanner> {
@override
Widget build(BuildContext context) {
- if (!isOfflineMode) return const SizedBox.shrink();
if (_dismissed) return const SizedBox.shrink();
if (!hasGrantedMLConsent) return const SizedBox.shrink();
if (localSettings.isMLProgressBannerDismissed) {
diff --git a/mobile/apps/photos/lib/ui/viewer/search_tab/search_tab.dart b/mobile/apps/photos/lib/ui/viewer/search_tab/search_tab.dart
index 4e5e4511ca..d684cdf1d4 100644
--- a/mobile/apps/photos/lib/ui/viewer/search_tab/search_tab.dart
+++ b/mobile/apps/photos/lib/ui/viewer/search_tab/search_tab.dart
@@ -144,6 +144,7 @@ class _AllSearchSectionsState extends State<AllSearchSections> {
itemCount: searchTypes.length + 1,
itemBuilder: (context, index) {
if (index == 0) {
+ if (!isOfflineMode) return const SizedBox.shrink();
return const MLProgressBanner();
}
final sectionIndex = index - 1;