[Android] Do not cast when unneeded

Jean-Baptiste Kempf git at videolan.org
Wed Apr 9 11:42:53 CEST 2014


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Apr  9 11:37:30 2014 +0200| [c4d28ae400b4595abd21eb7853926cce764f79a5] | committer: Jean-Baptiste Kempf

Do not cast when unneeded

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

 vlc-android/src/org/videolan/vlc/widget/HeaderScrollView.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/widget/HeaderScrollView.java b/vlc-android/src/org/videolan/vlc/widget/HeaderScrollView.java
index 48a5dad..8567bdf 100644
--- a/vlc-android/src/org/videolan/vlc/widget/HeaderScrollView.java
+++ b/vlc-android/src/org/videolan/vlc/widget/HeaderScrollView.java
@@ -51,7 +51,7 @@ public class HeaderScrollView extends HorizontalScrollView {
             public void run() {
                 LinearLayout hl = (LinearLayout) findViewById(R.id.header_layout);
                 for (int i = 0; i < hl.getChildCount(); ++i) {
-                    View t = (View)hl.getChildAt(i);
+                    View t = hl.getChildAt(i);
                     LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(mTabWidth, LayoutParams.WRAP_CONTENT, 1);
                     if (i == 0)
                         lp.setMargins(mTabWidth / 2, 0, 0, 0);



More information about the Android mailing list