mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat(mobile): improved logging page experience (#2158)
* feat(mobile): improve logging page * Use new API for share file * removed unused code * Better safe area on the home screen * Added preparing share dialog to home screen
This commit is contained in:
parent
2dcccb37a0
commit
d6f2ca6aaa
8 changed files with 313 additions and 35 deletions
|
|
@ -102,15 +102,13 @@ class ImmichLogger {
|
|||
}
|
||||
|
||||
// Share file
|
||||
// ignore: deprecated_member_use
|
||||
await Share.shareFiles(
|
||||
[filePath],
|
||||
await Share.shareXFiles(
|
||||
[XFile(filePath)],
|
||||
subject: "Immich logs $dateTime",
|
||||
sharePositionOrigin: Rect.zero,
|
||||
).then(
|
||||
(value) => logFile.delete(),
|
||||
);
|
||||
|
||||
// Clean up temp file
|
||||
await logFile.delete();
|
||||
}
|
||||
|
||||
/// Flush pending log messages to persistent storage
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@ class ShareService {
|
|||
}
|
||||
});
|
||||
|
||||
// ignore: deprecated_member_use
|
||||
Share.shareXFiles(
|
||||
await Future.wait(downloadedXFiles),
|
||||
sharePositionOrigin: Rect.zero,
|
||||
|
|
|
|||
|
|
@ -369,7 +369,6 @@ class SyncService {
|
|||
List<AssetPathEntity> onDevice, [
|
||||
Set<String>? excludedAssets,
|
||||
]) async {
|
||||
_log.info("Syncing ${onDevice.length} albums from device: $onDevice");
|
||||
onDevice.sort((a, b) => a.id.compareTo(b.id));
|
||||
final List<Album> inDb =
|
||||
await _db.albums.where().localIdIsNotNull().sortByLocalId().findAll();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue