[Android] Advanced options: fix the equalizer item visibility

Adrien Maglo git at videolan.org
Mon Mar 10 22:09:48 CET 2014


vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Mon Mar 10 22:09:40 2014 +0100| [a92d23cade03fb79c6b9738030b5dca843f17773] | committer: Adrien Maglo

Advanced options: fix the equalizer item visibility

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

 vlc-android/res/layout/advanced_options.xml             |    3 +--
 vlc-android/src/org/videolan/vlc/gui/CommonDialogs.java |    2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/vlc-android/res/layout/advanced_options.xml b/vlc-android/res/layout/advanced_options.xml
index 99b5657..dbbda5d 100644
--- a/vlc-android/res/layout/advanced_options.xml
+++ b/vlc-android/res/layout/advanced_options.xml
@@ -46,6 +46,7 @@
         android:textAppearance="?android:attr/textAppearanceMedium" />
 
     <LinearLayout
+        android:id="@+id/equalizer"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_margin="5dp"
@@ -53,13 +54,11 @@
         android:orientation="horizontal" >
 
         <ImageView
-            android:id="@+id/icon"
             android:layout_width="40dp"
             android:layout_height="40dp"
             android:src="?attr/ic_equalizer_normal_style" />
 
         <TextView
-            android:id="@+id/equalizer"
             android:layout_height="match_parent"
             android:layout_width="match_parent"
             android:gravity="center_vertical"
diff --git a/vlc-android/src/org/videolan/vlc/gui/CommonDialogs.java b/vlc-android/src/org/videolan/vlc/gui/CommonDialogs.java
index 4ab42ae..eed298c 100644
--- a/vlc-android/src/org/videolan/vlc/gui/CommonDialogs.java
+++ b/vlc-android/src/org/videolan/vlc/gui/CommonDialogs.java
@@ -109,7 +109,7 @@ public class CommonDialogs {
         }
 
         TextView add_subtitle = (TextView)dialog.findViewById(R.id.add_subtitle);
-        TextView equalizer = (TextView)dialog.findViewById(R.id.equalizer);
+        LinearLayout equalizer = (LinearLayout)dialog.findViewById(R.id.equalizer);
         if(t == MenuType.Video) {
             add_subtitle.setOnClickListener(new View.OnClickListener() {
                 @Override



More information about the Android mailing list