From da564ab804d7d141ab3c02ec58278f8d496e278b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 19 Jan 2012 17:20:13 +0300 Subject: [PATCH] properly reset search text on viewCategory() --- src/org/fox/ttrss/MainActivity.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/org/fox/ttrss/MainActivity.java b/src/org/fox/ttrss/MainActivity.java index 84ade258..5535a872 100644 --- a/src/org/fox/ttrss/MainActivity.java +++ b/src/org/fox/ttrss/MainActivity.java @@ -1568,6 +1568,15 @@ public class MainActivity extends FragmentActivity implements OnlineServices { m_activeFeed = new Feed(cat.id, cat.title, true); + if (m_menu != null) { + MenuItem search = m_menu.findItem(R.id.search); + + if (search != null && !m_compatMode) { + SearchView sv = (SearchView) search.getActionView(); + sv.setQuery("", false); + } + } + HeadlinesFragment frag = new HeadlinesFragment(); FragmentTransaction ft = getSupportFragmentManager()