Skip to content

Commit 4528981

Browse files
committed
输入法不弹出的bug
1 parent 9c6792a commit 4528981

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

app/src/main/java/net/coding/program/common/enter/EnterLayout.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,12 @@
66
import android.text.Editable;
77
import android.text.Spannable;
88
import android.text.TextWatcher;
9-
import android.util.Log;
109
import android.view.KeyEvent;
1110
import android.view.View;
1211
import android.view.ViewGroup;
13-
import android.view.ViewTreeObserver;
1412
import android.view.inputmethod.EditorInfo;
15-
import android.widget.CheckBox;
1613
import android.widget.EditText;
1714
import android.widget.ImageButton;
18-
import android.widget.LinearLayout;
1915
import android.widget.TextView;
2016

2117
import net.coding.program.MyApp;
@@ -103,7 +99,10 @@ public void onClick(View v) {
10399

104100
content = (EditText) activity.findViewById(R.id.comment);
105101
//拦截输入法 通过点击事件触发输入法
106-
interceptInputMethod(content);
102+
if (mType != Type.TextOnly) {
103+
interceptInputMethod(content);
104+
}
105+
107106
content.addTextChangedListener(new SimpleTextWatcher() {
108107
@Override
109108
public void afterTextChanged(Editable s) {

0 commit comments

Comments
 (0)