|
5 | 5 | import static org.thoughtcrime.securesms.connect.DcHelper.CONFIG_BCC_SELF;
|
6 | 6 | import static org.thoughtcrime.securesms.connect.DcHelper.CONFIG_MVBOX_MOVE;
|
7 | 7 | import static org.thoughtcrime.securesms.connect.DcHelper.CONFIG_ONLY_FETCH_MVBOX;
|
8 |
| -import static org.thoughtcrime.securesms.connect.DcHelper.CONFIG_SELF_REPORTING; |
| 8 | +import static org.thoughtcrime.securesms.connect.DcHelper.CONFIG_SEND_STATISTICS; |
9 | 9 | import static org.thoughtcrime.securesms.connect.DcHelper.CONFIG_SENTBOX_WATCH;
|
10 | 10 | import static org.thoughtcrime.securesms.connect.DcHelper.CONFIG_SHOW_EMAILS;
|
11 | 11 | import static org.thoughtcrime.securesms.connect.DcHelper.CONFIG_WEBXDC_REALTIME_ENABLED;
|
@@ -215,11 +215,11 @@ public void onCreate(Bundle paramBundle) {
|
215 | 215 | });
|
216 | 216 | }
|
217 | 217 |
|
218 |
| - selfReportingCheckbox = this.findPreference("pref_self_reporting"); |
| 218 | + selfReportingCheckbox = this.findPreference("pref_send_statistics"); |
219 | 219 | if (selfReportingCheckbox != null) {
|
220 | 220 | selfReportingCheckbox.setOnPreferenceChangeListener((preference, newValue) -> {
|
221 | 221 | boolean enabled = (Boolean) newValue;
|
222 |
| - dcContext.setConfigInt(CONFIG_SELF_REPORTING, enabled? 1 : 0); |
| 222 | + dcContext.setConfigInt(CONFIG_SEND_STATISTICS, enabled? 1 : 0); |
223 | 223 |
|
224 | 224 | if (enabled) {
|
225 | 225 | new AlertDialog.Builder(getActivity())
|
@@ -276,7 +276,7 @@ public void onResume() {
|
276 | 276 | updateListSummary(showEmails, value);
|
277 | 277 |
|
278 | 278 | sentboxWatchCheckbox.setChecked(0!=dcContext.getConfigInt(CONFIG_SENTBOX_WATCH));
|
279 |
| - selfReportingCheckbox.setChecked(0!=dcContext.getConfigInt(CONFIG_SELF_REPORTING)); |
| 279 | + selfReportingCheckbox.setChecked(0!=dcContext.getConfigInt(CONFIG_SEND_STATISTICS)); |
280 | 280 | bccSelfCheckbox.setChecked(0!=dcContext.getConfigInt(CONFIG_BCC_SELF));
|
281 | 281 | mvboxMoveCheckbox.setChecked(0!=dcContext.getConfigInt(CONFIG_MVBOX_MOVE));
|
282 | 282 | onlyFetchMvboxCheckbox.setChecked(0!=dcContext.getConfigInt(CONFIG_ONLY_FETCH_MVBOX));
|
|
0 commit comments