diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/OnlineActivity.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/OnlineActivity.java
index ef08c18f..8ded90d1 100644
--- a/org.fox.ttrss/src/main/java/org/fox/ttrss/OnlineActivity.java
+++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/OnlineActivity.java
@@ -27,7 +27,6 @@ import android.view.MenuItem;
import android.view.View;
import android.view.Window;
import android.widget.EditText;
-import android.widget.SearchView;
import android.widget.TextView;
import com.google.gson.Gson;
@@ -759,7 +758,7 @@ public class OnlineActivity extends CommonActivity {
startActivityForResult(intent, 0);
return true;
case R.id.search:
- if (hf != null && isCompatMode()) {
+ if (hf != null) {
Dialog dialog = new Dialog(this);
final EditText edit = new EditText(this);
@@ -1582,45 +1581,7 @@ public class OnlineActivity extends CommonActivity {
m_headlinesActionMode.finish();
}
}
-
- if (!isCompatMode()) {
- SearchView searchView = (SearchView) search.getActionView();
-
- if (searchView != null) {
- searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
- private String query = "";
-
- @Override
- public boolean onQueryTextSubmit(String query) {
- HeadlinesFragment frag = (HeadlinesFragment) getSupportFragmentManager()
- .findFragmentByTag(FRAG_HEADLINES);
-
- if (frag != null) {
- frag.setSearchQuery(query);
- this.query = query;
- }
-
- return false;
- }
-
- @Override
- public boolean onQueryTextChange(String newText) {
- if (newText.equals("") && !newText.equals(this.query)) {
- HeadlinesFragment frag = (HeadlinesFragment) getSupportFragmentManager()
- .findFragmentByTag(FRAG_HEADLINES);
-
- if (frag != null) {
- frag.setSearchQuery(newText);
- this.query = newText;
- }
- }
-
- return false;
- }
- });
- }
- }
- }
+ }
}
protected void refresh(boolean includeHeadlines) {
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineActivity.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineActivity.java
index d6d88c63..978ce211 100644
--- a/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineActivity.java
+++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineActivity.java
@@ -23,7 +23,6 @@ import android.view.MenuItem;
import android.view.View;
import android.view.Window;
import android.widget.EditText;
-import android.widget.SearchView;
import android.widget.TextView;
import org.fox.ttrss.CommonActivity;
@@ -281,7 +280,7 @@ public class OfflineActivity extends CommonActivity {
switchOnline();
return true;
case R.id.search:
- if (ohf != null && isCompatMode()) {
+ if (ohf != null) {
Dialog dialog = new Dialog(this);
final EditText edit = new EditText(this);
@@ -622,47 +621,7 @@ public class OfflineActivity extends CommonActivity {
article.close();
}
}
-
- if (!isCompatMode()) {
- MenuItem search = m_menu.findItem(R.id.search);
-
- SearchView searchView = (SearchView) search.getActionView();
-
- if (searchView != null) {
- searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
- private String query = "";
-
- @Override
- public boolean onQueryTextSubmit(String query) {
- OfflineHeadlinesFragment frag = (OfflineHeadlinesFragment) getSupportFragmentManager()
- .findFragmentByTag(FRAG_HEADLINES);
-
- if (frag != null) {
- frag.setSearchQuery(query);
- this.query = query;
- }
-
- return false;
- }
-
- @Override
- public boolean onQueryTextChange(String newText) {
- if (newText.equals("") && !newText.equals(this.query)) {
- OfflineHeadlinesFragment frag = (OfflineHeadlinesFragment) getSupportFragmentManager()
- .findFragmentByTag(FRAG_HEADLINES);
-
- if (frag != null) {
- frag.setSearchQuery(newText);
- this.query = newText;
- }
- }
-
- return false;
- }
- });
- }
- }
- }
+ }
}
private void switchOnline() {
diff --git a/org.fox.ttrss/src/main/res/menu/main_menu.xml b/org.fox.ttrss/src/main/res/menu/main_menu.xml
index 81e06712..15391862 100644
--- a/org.fox.ttrss/src/main/res/menu/main_menu.xml
+++ b/org.fox.ttrss/src/main/res/menu/main_menu.xml
@@ -14,13 +14,13 @@
@@ -138,7 +137,7 @@
diff --git a/org.fox.ttrss/src/main/res/menu/offline_menu.xml b/org.fox.ttrss/src/main/res/menu/offline_menu.xml
index 49709f18..5f20f869 100644
--- a/org.fox.ttrss/src/main/res/menu/offline_menu.xml
+++ b/org.fox.ttrss/src/main/res/menu/offline_menu.xml
@@ -10,15 +10,13 @@