Update: 2026-06-27 04:21:17
This commit is contained in:
@@ -400,7 +400,8 @@ class _MyAppState extends State<MyApp> with WidgetsBindingObserver {
|
||||
|
||||
if (savedTrip != null && savedTrip.isNotEmpty) {
|
||||
if (Get.currentRoute == '/') {
|
||||
print('⏳ App is still on Splash screen. Postponing notification trip navigation to HomeCaptainController.');
|
||||
print(
|
||||
'⏳ App is still on Splash screen. Postponing notification trip navigation to HomeCaptainController.');
|
||||
return;
|
||||
}
|
||||
await storage.delete(key: 'pending_driver_list');
|
||||
@@ -425,7 +426,8 @@ class _MyAppState extends State<MyApp> with WidgetsBindingObserver {
|
||||
// ==============================================================================
|
||||
Future<void> _processAcceptOrder(List<dynamic> data) async {
|
||||
if (_isProcessingAccept) {
|
||||
print("⏳ _processAcceptOrder: Already accepting order, skipping duplicate request.");
|
||||
print(
|
||||
"⏳ _processAcceptOrder: Already accepting order, skipping duplicate request.");
|
||||
return;
|
||||
}
|
||||
_isProcessingAccept = true;
|
||||
|
||||
Reference in New Issue
Block a user