Dr0ptp4kt has uploaded a new change for review.
https://gerrit.wikimedia.org/r/109504
Change subject: Slide the keyboard down and clear the search bar on search
result item tap.
......................................................................
Slide the keyboard down and clear the search bar on search result item tap.
Change-Id: Ib56432c3ed1ee058c234eca92a3747c655664117
---
M wikipedia/src/main/java/org/wikipedia/search/SearchArticlesFragment.java
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/apps/android/wikipedia
refs/changes/04/109504/1
diff --git
a/wikipedia/src/main/java/org/wikipedia/search/SearchArticlesFragment.java
b/wikipedia/src/main/java/org/wikipedia/search/SearchArticlesFragment.java
index a204749..6cfc40c 100644
--- a/wikipedia/src/main/java/org/wikipedia/search/SearchArticlesFragment.java
+++ b/wikipedia/src/main/java/org/wikipedia/search/SearchArticlesFragment.java
@@ -164,6 +164,9 @@
public void onItemClick(AdapterView<?> parent, View view, int
position, long id) {
PageTitle title = (PageTitle)
searchResultsList.getAdapter().getItem(position);
HistoryEntry historyEntry = new HistoryEntry(title,
HistoryEntry.SOURCE_SEARCH);
+ InputMethodManager keyboard =
(InputMethodManager)app.getSystemService(Context.INPUT_METHOD_SERVICE);
+
keyboard.hideSoftInputFromWindow(searchTermText.getWindowToken(), 0);
+ searchTermText.setText("");
app.getBus().post(new NewWikiPageNavigationEvent(title,
historyEntry));
displayResults(null);
}
--
To view, visit https://gerrit.wikimedia.org/r/109504
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib56432c3ed1ee058c234eca92a3747c655664117
Gerrit-PatchSet: 1
Gerrit-Project: apps/android/wikipedia
Gerrit-Branch: master
Gerrit-Owner: Dr0ptp4kt <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits