[Android] Remove identical overridden implementation
Romain Vimont
git at videolan.org
Thu Nov 9 16:59:16 CET 2017
vlc-android | branch: 2.5.x | Romain Vimont <rom at rom1v.com> | Tue Nov 7 18:34:45 2017 +0100| [b28b1c6294d132a824fb62ba71a48e0bbc6b33c8] | 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>
(cherry picked from commit b04c6a88babba03a23c5d7af09c44eff093bfab0)
> https://code.videolan.org/videolan/vlc-android/commit/b28b1c6294d132a824fb62ba71a48e0bbc6b33c8
---
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