Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][locker] Use save options for both home empty states (#14319)

aman-pilot2955ef8b6f6d
diff --git a/mobile/apps/locker/changes/unified-home-empty-state.md b/mobile/apps/locker/changes/unified-home-empty-state.md
new file mode 100644
index 0000000000..331bf39c7e
--- /dev/null
+++ b/mobile/apps/locker/changes/unified-home-empty-state.md
@@ -0,0 +1 @@
+- Updated the empty home screen to show save options regardless of Legacy kit setup.
diff --git a/mobile/apps/locker/lib/ui/pages/home_page.dart b/mobile/apps/locker/lib/ui/pages/home_page.dart
index 713132b79c..56cff5e33d 100644
--- a/mobile/apps/locker/lib/ui/pages/home_page.dart
+++ b/mobile/apps/locker/lib/ui/pages/home_page.dart
@@ -167,8 +167,6 @@ class _HomePageState extends UploaderPageState<HomePage>
bool _isSettingsOpen = false;
bool get _isSyncing => !_hasCompletedInitialLoad || _isLoading;
bool get _isHomeEmptyState => _error == null && _recentFiles.isEmpty;
- bool get _showsLegacySetupEmptyState =>
- _isHomeEmptyState && !_hasSetupLegacyKit;
List<Collection> _collections = [];
List<Collection> _filteredCollections = [];
@@ -812,7 +810,7 @@ class _HomePageState extends UploaderPageState<HomePage>
}
Widget _buildEmptyState(double scrollBottomPadding) {
- if (_hasSetupLegacyKit && !_isSyncing) {
+ if (!_isSyncing) {
return SingleChildScrollView(
physics: const AlwaysScrollableScrollPhysics(),
padding: EdgeInsets.only(
@@ -848,7 +846,7 @@ class _HomePageState extends UploaderPageState<HomePage>
onLegacyTapped: () => unawaited(openLegacyFromHome(context)),
isSyncing: _isSyncing,
),
- if (!_showsLegacySetupEmptyState) _buildSearchBar(),
+ _buildSearchBar(),
Expanded(child: _buildBody()),
],
);