From 1cbeeafa2daee701d71b26109f09b5ed9fc4b881 Mon Sep 17 00:00:00 2001 From: Trey T Date: Sat, 18 Apr 2026 13:32:26 -0500 Subject: [PATCH] =?UTF-8?q?Integration:=20remove=20legacy=20WidgetTaskActi?= =?UTF-8?q?onReceiver=20(replaced=20by=20CompleteTaskAction=20=E2=80=94=20?= =?UTF-8?q?P3=20Stream=20M=20follow-up)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Stream M replaced the widget's task-complete path with CompleteTaskAction + WidgetActionProcessor. Grepping confirmed the only references to WidgetTaskActionReceiver were its own class file and the manifest entry. Remove both. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../src/androidMain/AndroidManifest.xml | 9 --- .../widget/WidgetTaskActionReceiver.kt | 56 ------------------- 2 files changed, 65 deletions(-) delete mode 100644 composeApp/src/androidMain/kotlin/com/tt/honeyDue/widget/WidgetTaskActionReceiver.kt 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() - } - } - } -}