File tree Expand file tree Collapse file tree
app/src/main/java/net/coding/program/common/enter Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66import android .text .Editable ;
77import android .text .Spannable ;
88import android .text .TextWatcher ;
9- import android .util .Log ;
109import android .view .KeyEvent ;
1110import android .view .View ;
1211import android .view .ViewGroup ;
13- import android .view .ViewTreeObserver ;
1412import android .view .inputmethod .EditorInfo ;
15- import android .widget .CheckBox ;
1613import android .widget .EditText ;
1714import android .widget .ImageButton ;
18- import android .widget .LinearLayout ;
1915import android .widget .TextView ;
2016
2117import 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 ) {
You can’t perform that action at this time.
0 commit comments