Set Android keyboard actionLabel only if non-null (flutter/engine#3677)

This commit is contained in:
Chris Bracken
2017-05-10 12:20:03 -07:00
committed by GitHub
parent 90d2bf630c
commit 3701c34de0

View File

@@ -91,7 +91,8 @@ public class TextInputPlugin implements MethodCallHandler {
return null;
outAttrs.inputType = inputTypeFromTextInputType(mConfiguration.getString("inputType"),
mConfiguration.optBoolean("obscureText"));
outAttrs.actionLabel = mConfiguration.getString("actionLabel");
if (!mConfiguration.isNull("actionLabel"))
outAttrs.actionLabel = mConfiguration.getString("actionLabel");
outAttrs.imeOptions = EditorInfo.IME_ACTION_DONE | EditorInfo.IME_FLAG_NO_FULLSCREEN;
InputConnectionAdaptor connection = new InputConnectionAdaptor(view, mClient, this,
mFlutterChannel);