Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions app/lib/pages/apps/page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ class _AppsPageState extends State<AppsPage> with AutomaticKeepAliveClientMixin
),
);
}),
const SliverToBoxAdapter(
child: SizedBox(
height: 120,
),
),
],
),
CustomScrollView(
Expand All @@ -129,6 +134,11 @@ class _AppsPageState extends State<AppsPage> with AutomaticKeepAliveClientMixin
),
);
}),
const SliverToBoxAdapter(
child: SizedBox(
height: 120,
),
),
],
),
]),
Expand Down
22 changes: 11 additions & 11 deletions app/lib/providers/capture_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -570,17 +570,6 @@ class CaptureProvider extends ChangeNotifier
debugPrint(
'previousStorageBytes in initiateStorageBytesStreaming: ${SharedPreferencesUtil().previousStorageBytes}');
btConnectedTime = DateTime.now().toUtc().toString();
sdCardSocket.setupSdCardWebSocket(
//replace
onMessageReceived: () {
debugPrint('onMessageReceived');
memoryProvider?.getMemoriesFromServer();
notifyListeners();
_notifySdCardComplete();
return;
},
btConnectedTime: btConnectedTime,
);

if (totalStorageFileBytes > 100) {
sdCardReady = true;
Expand All @@ -595,6 +584,17 @@ class CaptureProvider extends ChangeNotifier
if (totalStorageFileBytes == 0) {
return;
}
await sdCardSocket.setupSdCardWebSocket(
//replace
onMessageReceived: () {
debugPrint('onMessageReceived');
memoryProvider?.getMemoriesFromServer();
notifyListeners();
_notifySdCardComplete();
return;
},
btConnectedTime: btConnectedTime,
);
if (sdCardSocket.sdCardConnectionState != WebsocketConnectionStatus.connected) {
sdCardSocket.sdCardChannel?.sink.close();
await sdCardSocket.setupSdCardWebSocket(
Expand Down