Skip to content

Commit

Permalink
Remove audit setting (getodk#1203)
Browse files Browse the repository at this point in the history
* Make the default value for audit pref true.

This setting suppresses the form-level setting when false. The default should be true.

* Remove the audit setting from the user interface.

This leaves dead code pending a decision regarding the setting. If the setting is removed, some code will need to be cleaned up.
  • Loading branch information
lognaturel authored and yanokwa committed Jun 26, 2017
1 parent 23ae784 commit 8c17ed9
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public TimerLogger(File instanceFile, SharedPreferences sharedPreferences, FormC
*/
boolean loggingEnabledInForm = formController.getSubmissionMetadata().audit;
boolean loggingEnabledInPref = sharedPreferences.getBoolean(
AdminKeys.KEY_TIMER_LOG_ENABLED, false);
AdminKeys.KEY_TIMER_LOG_ENABLED, true);
timerEnabled = loggingEnabledInForm && loggingEnabledInPref;

if (timerEnabled) {
Expand Down
3 changes: 0 additions & 3 deletions collect_app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -507,9 +507,6 @@
<string name="server_settings_title">Server</string>
<string name="type">Type</string>
<string name="form_entry">Uncheck to hide from Form Entry</string>
<string name="audit">Audit</string>
<string name="timer_log">Record time in questions</string>
<string name="timer_log_summary">Record time spent answering each question</string>
<string name="use_device_language">Use device language</string>
<string name="not_supported_offline_layer_format">Selected offline layer file uses the PBF format which is not supported!</string>
</resources>
11 changes: 0 additions & 11 deletions collect_app/src/main/res/xml/form_management_preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,6 @@
android:title="@string/delete_after_send" />
</PreferenceCategory>

<PreferenceCategory
android:key="@string/audit"
android:title="@string/audit" >
<CheckBoxPreference
android:id="@+id/timer_log"
android:defaultValue="true"
android:key="timer_log"
android:summary="@string/timer_log_summary"
android:title="@string/timer_log" />
</PreferenceCategory>

<PreferenceCategory
android:key="form_filling"
android:title="@string/form_filling_category">
Expand Down
11 changes: 0 additions & 11 deletions collect_app/src/main/res/xml/preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,6 @@
android:title="@string/delete_after_send" />
</PreferenceCategory>

<PreferenceCategory
android:key="@string/audit"
android:title="@string/audit" >
<CheckBoxPreference
android:id="@+id/timer_log"
android:defaultValue="true"
android:key="timer_log"
android:summary="@string/timer_log_summary"
android:title="@string/timer_log" />
</PreferenceCategory>

<PreferenceCategory
android:key="form_filling"
android:title="@string/form_filling_category">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,5 @@
android:defaultValue="true"
android:key="analytics"
android:title="@string/analytics" />
<CheckBoxPreference
android:id="@+id/timer_log"
android:defaultValue="true"
android:key="change_timer_log"
android:title="@string/timer_log" />
</PreferenceCategory>
</PreferenceScreen>

0 comments on commit 8c17ed9

Please sign in to comment.