[Android] Navigation View : Remove unecesssary top padding

Alexandre Perraud git at videolan.org
Mon Nov 23 18:00:37 CET 2015


vlc-ports/android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Thu Nov 12 17:37:25 2015 +0100| [2a8a1a6f651f74decc97dc28895017f9b219c70e] | committer: Alexandre Perraud

Navigation View : Remove unecesssary top padding

for Lolipop and more

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=2a8a1a6f651f74decc97dc28895017f9b219c70e
---

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index 621ac9e..ddccc3d 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -216,6 +216,9 @@ public class MainActivity extends AudioPlayerContainerActivity implements Search
             MenuItem item = mNavigationView.getMenu().findItem(R.id.nav_directories);
             item.setTitle(R.string.open);
         }
+
+        if (AndroidUtil.isLolliPopOrLater())
+            mNavigationView.setPadding(0, mNavigationView.getPaddingTop()/2, 0, 0);
     }
 
     @Override



More information about the Android mailing list