Bug 834471 - Part 1: Fix some FindBugs warnings about strings. r=jchen
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user