Skip to content

Commit

Permalink
Merge pull request #1904 from ardriveapp/PE-7037-missing-hide-show-hi…
Browse files Browse the repository at this point in the history
…dden-items-icon-on-android

PE-7037: missing hide show hidden items icon on android
  • Loading branch information
thiagocarvalhodev authored Oct 28, 2024
2 parents 45a6f84 + 8acbf55 commit 9f47a53
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions lib/app_shell.dart
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,8 @@ class MobileAppBar extends StatelessWidget implements PreferredSizeWidget {
),
),
const Spacer(),
const GlobalHideToggleButton(),
const SizedBox(width: 8),
const SyncButton(),
const SizedBox(
width: 24,
Expand Down
4 changes: 2 additions & 2 deletions lib/authentication/ardrive_auth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,12 @@ class ArDriveAuthImpl implements ArDriveAuth {
await _secureKeyValueStore.remove('biometricEnabled');
currentUser = null;
await _disconnectFromArConnect();
_userStreamController.add(null);
}

await _userRepository.deleteUser();
await _databaseHelpers.deleteAllTables();
await (await _metadataCache).clear();
(await _metadataCache).clear();
_userStreamController.add(null);
} catch (e, stacktrace) {
logger.e('Failed to logout user', e, stacktrace);
throw AuthenticationFailedException('Failed to logout user');
Expand Down
4 changes: 4 additions & 0 deletions lib/blocs/drive_detail/drive_detail_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ class DriveDetailCubit extends Cubit<DriveDetailState> {
),
_profileCubit.stream.startWith(ProfileCheckingAvailability()),
(drive, folderContents, _) async {
if (isClosed) {
return;
}

await _syncCubit.waitCurrentSync();

if (drive == null) {
Expand Down
3 changes: 2 additions & 1 deletion lib/blocs/hide/hide_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,8 @@ class HideBloc extends Bloc<HideEvent, HideState> {
performedAction:
settings.isHidden ? RevisionAction.hide : RevisionAction.unhide,
);
await _driveDao.updateDrive(driveCompanion.toEntryCompanion());

await _driveDao.insertDriveRevision(driveCompanion);
}
});
}
Expand Down
1 change: 1 addition & 0 deletions lib/models/drive_revision.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ extension DriveRevisionCompanionExtensions on DriveRevisionsCompanion {
privacy: privacy.value,
customGQLTags: customGQLTags,
customJsonMetadata: customJsonMetadata,
isHidden: isHidden,
);

/// Returns a [NetworkTransactionsCompanion] representing the metadata transaction
Expand Down

0 comments on commit 9f47a53

Please sign in to comment.