File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
core/java/android/inputmethodservice Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -1981,15 +1981,19 @@ public void onUpdateExtractingViews(EditorInfo ei) {
19811981 ei .inputType != InputType .TYPE_NULL );
19821982 if (hasAction ) {
19831983 mExtractAccessories .setVisibility (View .VISIBLE );
1984- if (ei .actionLabel != null ) {
1985- mExtractAction .setText (ei .actionLabel );
1986- } else {
1987- mExtractAction .setText (getTextForImeAction (ei .imeOptions ));
1984+ if (mExtractAction != null ) {
1985+ if (ei .actionLabel != null ) {
1986+ mExtractAction .setText (ei .actionLabel );
1987+ } else {
1988+ mExtractAction .setText (getTextForImeAction (ei .imeOptions ));
1989+ }
1990+ mExtractAction .setOnClickListener (mActionClickListener );
19881991 }
1989- mExtractAction .setOnClickListener (mActionClickListener );
19901992 } else {
19911993 mExtractAccessories .setVisibility (View .GONE );
1992- mExtractAction .setOnClickListener (null );
1994+ if (mExtractAction != null ) {
1995+ mExtractAction .setOnClickListener (null );
1996+ }
19931997 }
19941998 }
19951999
You can’t perform that action at this time.
0 commit comments