Remove getString from ContextManager

pull/189/head
Alex Baker 12 years ago
parent 5317dca490
commit fdde8b03bd

@ -40,14 +40,4 @@ public final class ContextManager {
public static Context getContext() { public static Context getContext() {
return context; return context;
} }
/**
* Convenience method to read a string from the resources
*
* @param resId resource
* @return resource string
*/
public static String getString(int resId, Object... formatArgs) {
return context.getString(resId, formatArgs);
}
} }

@ -179,14 +179,16 @@ public class Preferences {
} }
public static boolean getBoolean(int keyResources, boolean defValue) { public static boolean getBoolean(int keyResources, boolean defValue) {
return getBoolean(ContextManager.getString(keyResources), defValue); Context context = ContextManager.getContext();
return getBoolean(context.getString(keyResources), defValue);
} }
/** /**
* Sets boolean preference * Sets boolean preference
*/ */
public static void setBoolean(int keyResource, boolean value) { public static void setBoolean(int keyResource, boolean value) {
setBoolean(ContextManager.getString(keyResource), value); Context context = ContextManager.getContext();
setBoolean(context.getString(keyResource), value);
} }
/** /**

Loading…
Cancel
Save