Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f436750 authored by James Lemieux's avatar James Lemieux
Browse files

Update test cases to verify time-change scenario

Bug: 25302368

The bug was already fixed as part of b/19651361 but I wanted to
add the reported use case to the corpus for better regression
testing.

Change-Id: I51f80cfbbae01681b018d249de56d0d39b4122d2
parent dcc746ea
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -686,18 +686,6 @@ public class Utils {
        return context.getResources().getQuantityString(id, quantity, localizedQuantity);
    }

    public static void setTimezoneLocale(Context context, Locale locale) {
        PreferenceManager.getDefaultSharedPreferences(context)
                .edit().putString(SettingsActivity.TIMEZONE_LOCALE, locale.toString()).apply();
    }

    public static Locale getTimezoneLocale(Context context) {
       final String localeString = PreferenceManager.getDefaultSharedPreferences(context)
               .getString(SettingsActivity.TIMEZONE_LOCALE,
                       context.getResources().getConfiguration().locale.toString());
       return new Locale(localeString);
    }

    public static <E> ArraySet<E> newArraySet(Collection<E> collection) {
        final ArraySet<E> arraySet = new ArraySet<>(collection.size());
        arraySet.addAll(collection);