@@ -359,7 +359,7 @@ class InputMethodState {
359359
360360 private SpellChecker mSpellChecker ;
361361
362- private boolean mShowSoftInputOnFocus = true ;
362+ private boolean mSoftInputShownOnFocus = true ;
363363
364364 // The alignment to pass to Layout, or null if not resolved.
365365 private Layout .Alignment mLayoutAlignment ;
@@ -2381,23 +2381,23 @@ public final boolean getLinksClickable() {
23812381 * Sets whether the soft input method will be made visible when this
23822382 * TextView gets focused. The default is true.
23832383 *
2384- * @attr ref android.R.styleable#TextView_showSoftInputOnFocus
2384+ * @attr ref android.R.styleable#TextView_softInputShownOnFocus
23852385 * @hide
23862386 */
23872387 @ android .view .RemotableViewMethod
2388- public final void setShowSoftInputOnFocus (boolean show ) {
2389- mShowSoftInputOnFocus = show ;
2388+ public final void setSoftInputShownOnFocus (boolean show ) {
2389+ mSoftInputShownOnFocus = show ;
23902390 }
23912391
23922392 /**
23932393 * Returns whether the soft input method will be made visible when this
23942394 * TextView gets focused. The default is true.
23952395 *
2396- * @attr ref android.R.styleable#TextView_showSoftInputOnFocus
2396+ * @attr ref android.R.styleable#TextView_softInputShownOnFocus
23972397 * @hide
23982398 */
2399- public final boolean getShowSoftInputOnFocus () {
2400- return mShowSoftInputOnFocus ;
2399+ public final boolean getSoftInputShownOnFocus () {
2400+ return mSoftInputShownOnFocus ;
24012401 }
24022402
24032403 /**
@@ -5502,7 +5502,7 @@ public boolean onKeyUp(int keyCode, KeyEvent event) {
55025502 && mLayout != null && onCheckIsTextEditor ()) {
55035503 InputMethodManager imm = InputMethodManager .peekInstance ();
55045504 viewClicked (imm );
5505- if (imm != null && mShowSoftInputOnFocus ) {
5505+ if (imm != null && mSoftInputShownOnFocus ) {
55065506 imm .showSoftInput (this , 0 );
55075507 }
55085508 }
@@ -8344,7 +8344,7 @@ public boolean onTouchEvent(MotionEvent event) {
83448344 // Show the IME, except when selecting in read-only text.
83458345 final InputMethodManager imm = InputMethodManager .peekInstance ();
83468346 viewClicked (imm );
8347- if (!mTextIsSelectable && mShowSoftInputOnFocus ) {
8347+ if (!mTextIsSelectable && mSoftInputShownOnFocus ) {
83488348 handled |= imm != null && imm .showSoftInput (this , 0 );
83498349 }
83508350
@@ -10202,7 +10202,7 @@ private boolean startSelectionActionMode() {
1020210202 final boolean selectionStarted = mSelectionActionMode != null ||
1020310203 extractedTextModeWillBeStartedFullScreen ;
1020410204
10205- if (selectionStarted && !mTextIsSelectable && imm != null && mShowSoftInputOnFocus ) {
10205+ if (selectionStarted && !mTextIsSelectable && imm != null && mSoftInputShownOnFocus ) {
1020610206 // Show the IME to be able to replace text, except when selecting non editable text.
1020710207 imm .showSoftInput (this , 0 , null );
1020810208 }
0 commit comments