Simple Notepad Application for Android OS
修订版 | 0b120016021af4d852f45e4c33f167a6c7f80580 (tree) |
---|---|
时间 | 2017-08-19 16:20:12 |
作者 | Masahiko, SAWAI <say@user...> |
Commiter | Masahiko, SAWAI |
Fixed the search view focus bug
@@ -374,9 +374,13 @@ public class NotepadActivity extends Activity implements NotepadConstants, | ||
374 | 374 | Log.v(LOG_TAG, "Hello"); |
375 | 375 | |
376 | 376 | doSearchWithQueryText(queryText); |
377 | + Log.v(LOG_TAG, "queryText => " + queryText); | |
378 | + Log.v(LOG_TAG, "searchView.isShown() => " + searchView.isShown()); | |
379 | + Log.v(LOG_TAG, "searchView.isIconified() => " + searchView.isIconified()); | |
377 | 380 | if (TextUtils.isEmpty(queryText) == false && searchView != null && searchView.isIconified()) |
378 | 381 | { |
379 | 382 | searchView.setIconified(false); |
383 | + searchView.clearFocus(); | |
380 | 384 | } |
381 | 385 | |
382 | 386 | Log.v(LOG_TAG, "Bye"); |