Rollback stop task service before opening, ViewModel implementation seems fix the previous crash

This commit is contained in:
J-Jamet committed 2020-08-08 15:58:25 +02:00
1 parent 8fc30f590b
commit 9cdbe67cd4
1 file changed
+1
@@ -215,6 +215,7 @@ class ProgressDatabaseTaskProvider(private val activity: FragmentActivity) {
}
private fun start(bundle: Bundle? = null, actionTask: String) {
activity.stopService(intentDatabaseTask)
if (bundle != null)
intentDatabaseTask.putExtras(bundle)
intentDatabaseTask.action = actionTask