mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-24 22:45:20 +00:00
Retry foreground service start after onboarding grants
This commit is contained in:
@@ -674,6 +674,9 @@ class MainActivity : OrientationAwareActivity() {
|
|||||||
return@launch
|
return@launch
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Retry foreground-service startup now that runtime permissions are available.
|
||||||
|
try { com.bitchat.android.service.MeshForegroundService.start(applicationContext) } catch (_: Exception) { }
|
||||||
|
|
||||||
// Set up mesh service delegate and start services
|
// Set up mesh service delegate and start services
|
||||||
meshService.delegate = chatViewModel
|
meshService.delegate = chatViewModel
|
||||||
meshService.startServices()
|
meshService.startServices()
|
||||||
|
|||||||
Reference in New Issue
Block a user