From 833f92a53c8a46f098dadc010381d3c87f56cb25 Mon Sep 17 00:00:00 2001 From: Shubham Goyal Date: Thu, 5 Sep 2024 12:49:10 +0530 Subject: [PATCH] Do not save read only forms again --- app/src/org/commcare/activities/FormEntryActivity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/org/commcare/activities/FormEntryActivity.java b/app/src/org/commcare/activities/FormEntryActivity.java index 02eff5482a..0ca63f64a4 100644 --- a/app/src/org/commcare/activities/FormEntryActivity.java +++ b/app/src/org/commcare/activities/FormEntryActivity.java @@ -820,6 +820,10 @@ private void saveDataToDisk(boolean exit, boolean complete, String updatedSaveNa return; } + if (mFormController.isFormReadOnly()) { + return; + } + // save current answer; if headless, don't evaluate the constraints // before doing so. boolean wasScreenSaved =