Bug 834471 - Part 1: Fix some FindBugs warnings about strings. r=jchen

This commit is contained in:
Chris Peterson
2013-01-25 16:32:04 -08:00
parent e8631e74ea
commit cdaf6e04a8
2 changed files with 4 additions and 4 deletions

View File

@@ -51,7 +51,8 @@ final class InputMethods {
private InputMethods() {}
public static String getCurrentInputMethod(Context context) {
return Secure.getString(context.getContentResolver(), Secure.DEFAULT_INPUT_METHOD);
String inputMethod = Secure.getString(context.getContentResolver(), Secure.DEFAULT_INPUT_METHOD);
return (inputMethod != null ? inputMethod : "");
}
public static InputMethodInfo getInputMethodInfo(Context context, String inputMethod) {