[Android] Avoid useless calls on category selection

Geoffrey Métais git at videolan.org
Wed Feb 7 11:16:29 CET 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Feb  7 11:15:36 2018 +0100| [67d0b690ef59d20b1235e4bf5be6e28653e9488b] | committer: Geoffrey Métais

Avoid useless calls on category selection

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

 vlc-android/src/org/videolan/vlc/gui/MainActivity.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index acfe021fc..e14218dfa 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -593,9 +593,7 @@ public class MainActivity extends ContentActivity implements FilterQueryProvider
                     mDrawerLayout.closeDrawer(mNavigationView);
                     return false;
                 }
-            }
-
-            switch (id) {
+            } else switch (id) {
                 case R.id.nav_about:
                     showSecondaryFragment(SecondaryActivity.ABOUT);
                     break;



More information about the Android mailing list