Fix startup sequence to set the preferred unit if not set

This commit is contained in:
Jimmy Shih
2014-01-10 12:37:34 -08:00
parent e62e821fc3
commit 6ab9f0716b
2 changed files with 2 additions and 21 deletions
@@ -31,7 +31,6 @@ public class EulaUtils {
// Accepting Google mobile terms of service
private static final String ACCEPT_EULA_PREFERENCE_KEY = "eula.google_mobile_tos_accepted";
private static final String DEFAULT_UNITS_PREFERENCE_KEY = "defaultUnits";
private static final String SHOW_ENABLE_SYNC_PREFERENCE_KEY = "showEnableSync";
private EulaUtils() {}
@@ -53,24 +52,6 @@ public class EulaUtils {
setValue(context, ACCEPT_EULA_PREFERENCE_KEY, true);
}
/**
* Returns true if the default units is initialized.
*
* @param context the context
*/
public static boolean hasDefaultUnits(Context context) {
return getValue(context, DEFAULT_UNITS_PREFERENCE_KEY, false);
}
/**
* Sets to true that the default units is initialized.
*
* @param context the context
*/
public static void setDefaultUnits(Context context) {
setValue(context, DEFAULT_UNITS_PREFERENCE_KEY, true);
}
/**
* Returns true if show enable sync is needed.
*