|
|
|
@ -90,6 +90,7 @@ import java.lang.reflect.Field;
|
|
|
|
|
import java.nio.charset.Charset;
|
|
|
|
|
import java.text.NumberFormat;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
|
import java.util.Collections;
|
|
|
|
|
import java.util.Comparator;
|
|
|
|
|
import java.util.Date;
|
|
|
|
@ -262,7 +263,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
private static final int REQUEST_CLASSIFIER = 1;
|
|
|
|
|
private static final long MIN_FILE_SIZE = 1024 * 1024L;
|
|
|
|
|
|
|
|
|
|
private final static String[] RESET_OPTIONS = new String[]{
|
|
|
|
|
private final static List<String> RESET_OPTIONS = Collections.unmodifiableList(Arrays.asList(
|
|
|
|
|
"sort_answers", "shortcuts", "ical_tentative", "fts",
|
|
|
|
|
"classification", "class_min_probability", "class_min_difference",
|
|
|
|
|
"show_filtered", "haptic_feedback",
|
|
|
|
@ -287,7 +288,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
"easy_correct", "infra", "tld_flags", "json_ld", "dup_msgids", "thread_byref", "mdn",
|
|
|
|
|
"app_chooser", "app_chooser_share", "adjacent_links", "adjacent_documents", "adjacent_portrait", "adjacent_landscape",
|
|
|
|
|
"delete_confirmation", "global_keywords", "test_iab"
|
|
|
|
|
};
|
|
|
|
|
));
|
|
|
|
|
|
|
|
|
|
private final static String[] RESET_QUESTIONS = new String[]{
|
|
|
|
|
"first", "app_support", "notify_archive",
|
|
|
|
@ -2059,6 +2060,9 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onSharedPreferenceChanged(SharedPreferences prefs, String key) {
|
|
|
|
|
if (!RESET_OPTIONS.contains(key))
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
if ("last_cleanup".equals(key))
|
|
|
|
|
setLastCleanup(prefs.getLong(key, -1));
|
|
|
|
|
|
|
|
|
|