diff --git a/composeApp/src/androidMain/AndroidManifest.xml b/composeApp/src/androidMain/AndroidManifest.xml index 744fb4f..8d67f72 100644 --- a/composeApp/src/androidMain/AndroidManifest.xml +++ b/composeApp/src/androidMain/AndroidManifest.xml @@ -121,15 +121,6 @@ - - - - - - - { - val taskId = intent.getIntExtra("task_id", -1) - if (taskId != -1) { - completeTask(context, taskId) - } - } - } - } - - private fun completeTask(context: Context, taskId: Int) { - CoroutineScope(Dispatchers.IO).launch { - try { - // Check if user is authenticated - val token = DataManager.authToken.value - if (token.isNullOrEmpty()) { - return@launch - } - - // Create completion request - val request = TaskCompletionCreateRequest( - taskId = taskId, - notes = "Completed from widget" - ) - - // Complete the task via API - val result = APILayer.createTaskCompletion(request) - - // Update widgets after completion - if (result is com.tt.honeyDue.network.ApiResult.Success) { - WidgetUpdateManager.forceRefresh(context) - } - } catch (e: Exception) { - e.printStackTrace() - } - } - } -}