[Android] Remove identical overridden implementation

Romain Vimont git at videolan.org
Thu Nov 9 16:56:22 CET 2017


vlc-android | branch: master | Romain Vimont <rom at rom1v.com> | Tue Nov  7 18:34:45 2017 +0100| [b04c6a88babba03a23c5d7af09c44eff093bfab0] | committer: Geoffrey Métais

Remove identical overridden implementation

MainActivity provided the very same implementation for
onQueryTextChange(), overridden from its superclass ContentActivity.

To avoid code duplication, remove it.

Signed-off-by: Geoffrey Métais <geoffrey.metais at gmail.com>

> https://code.videolan.org/videolan/vlc-android/commit/b04c6a88babba03a23c5d7af09c44eff093bfab0
---

 vlc-android/src/org/videolan/vlc/gui/MainActivity.java | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index 672dc229e..5d85a52e0 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -557,18 +557,6 @@ public class MainActivity extends ContentActivity implements FilterQueryProvider
     }
 
     @Override
-    public boolean onQueryTextChange(String filterQueryString) {
-        if (filterQueryString.length() < 3)
-            return false;
-        final Fragment current = getCurrentFragment();
-        if (current instanceof Filterable) {
-            ((Filterable) current).getFilter().filter(filterQueryString);
-            return true;
-        }
-        return false;
-    }
-
-    @Override
     public boolean onNavigationItemSelected(MenuItem item) {
         // This should not happen
         if(item == null)



More information about the Android mailing list