From bf485a5200d5d86b15735d102551b59650040dcc Mon Sep 17 00:00:00 2001 From: Fahim Masud Choudhury Date: Thu, 20 Nov 2025 17:52:01 +0600 Subject: [PATCH] fix: resolve `org.dmfs.tasks.model.ModelInflaterException` generated by Tasks app Tasks app is looking for a model definition XML file from the Account Manager app but can't find it because the Account Manager app doesn't provide the required org.dmfs.tasks.TASKS metadata. To fix the exception in Account Manager: 1. Added the org.dmfs.tasks.TASKS metadata to the OpenTasksSyncAdapterService in the AndroidManifest.xml 2. Created the tasks_model.xml file with the appropriate task field definitions 3. Added the required string resources --- app/src/main/AndroidManifest.xml | 4 ++++ app/src/main/res/values/strings.xml | 16 ++++++++++++++++ app/src/main/res/xml/tasks_model.xml | 16 ++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 app/src/main/res/xml/tasks_model.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 4cd2f8b6d..f36cf8877 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -262,6 +262,10 @@ + + Authentication failed. Please enter a valid credentials "Account Manager's Privacy Policy" "Privacy Policy" + + + Task + Enter task title + Description + Enter task description + Start + Due + Completed + Percent Complete + Status + Priority + Classification + URL + All-Day + Timezone diff --git a/app/src/main/res/xml/tasks_model.xml b/app/src/main/res/xml/tasks_model.xml new file mode 100644 index 000000000..4da79eb5d --- /dev/null +++ b/app/src/main/res/xml/tasks_model.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file -- GitLab