From 3b4a58f97842a71cac95e29dbb0a11fa2cd900fe Mon Sep 17 00:00:00 2001 From: Ahmad Vazirna Date: Fri, 25 Oct 2024 14:52:10 +0200 Subject: [PATCH] Return false to prevent adding the preference again --- app/src/org/commcare/preferences/DeveloperPreferences.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/org/commcare/preferences/DeveloperPreferences.java b/app/src/org/commcare/preferences/DeveloperPreferences.java index 03eb335eeb..46af8cbcc2 100644 --- a/app/src/org/commcare/preferences/DeveloperPreferences.java +++ b/app/src/org/commcare/preferences/DeveloperPreferences.java @@ -129,6 +129,7 @@ public void onCreatePreferences(Bundle savedInstanceState, String rootKey) { SharedPreferences appPreferences = CommCareApplication.instance().getCurrentApp() .getAppPreferences(); appPreferences.edit().remove(PREFS_LOG_POST_URL_KEY).apply(); + return false; } return true; });