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

Commit a28f65f3 authored by James Lemieux's avatar James Lemieux Committed by android-build-merger
Browse files

Merge "Update test cases to verify time-change scenario" into ub-deskclock-dazzle

am: 750bf029

* commit '750bf029':
  Update test cases to verify time-change scenario
parents 6efcb148 750bf029
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);