[Android] Video Player Tips : Fix some bugs

Alexandre Perraud git at videolan.org
Thu Jun 5 23:01:14 CEST 2014


vlc-ports/android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Mon Jun  2 16:17:14 2014 +0200| [88ac79d6f19420afed3a7281f40dde04dadcd9f8] | committer: Adrien Maglo

Video Player Tips : Fix some bugs

Signed-off-by: Alexandre Perraud <4leyx4ndre at gmail.com>
Signed-off-by: Adrien Maglo <magsoft at videolan.org>

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

 vlc-android/res/drawable/button_oval.xml                         |    6 +++---
 vlc-android/res/layout/player_tips.xml                           |    1 -
 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java      |    3 +--
 3 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/vlc-android/res/drawable/button_oval.xml b/vlc-android/res/drawable/button_oval.xml
index 3c9fc10..dbfa2b2 100644
--- a/vlc-android/res/drawable/button_oval.xml
+++ b/vlc-android/res/drawable/button_oval.xml
@@ -1,12 +1,12 @@
 <shape xmlns:android="http://schemas.android.com/apk/res/android"
     android:shape="rectangle" >
 
-    <solid android:color="@color/darkerorange" />
+    <solid android:color="@color/darkorange" />
 
     <padding
         android:bottom="6dp"
-        android:left="6dp"
-        android:right="6dp"
+        android:left="16dp"
+        android:right="16dp"
         android:top="6dp" />
 
     <corners android:radius="160dp" />
diff --git a/vlc-android/res/layout/player_tips.xml b/vlc-android/res/layout/player_tips.xml
index 08589f4..ad7dde4 100644
--- a/vlc-android/res/layout/player_tips.xml
+++ b/vlc-android/res/layout/player_tips.xml
@@ -160,7 +160,6 @@
                 android:background="@drawable/button_oval"
                 android:clickable="true"
                 android:onClick="onClickDismissTips"
-                android:paddingLeft="5dp"
                 android:text="@string/ok_got_it"
                 android:textColor="@color/white"
                 android:textStyle="bold"
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index b5fbb2d..63913bf 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1622,14 +1622,13 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
         if (mShowing) {
             mHandler.removeMessages(SHOW_PROGRESS);
             Log.i(TAG, "remove View!");
-            mOverlayTips.setVisibility(View.INVISIBLE);
+            if (mOverlayTips != null) mOverlayTips.setVisibility(View.INVISIBLE);
             if (!fromUser && !mIsLocked) {
                 mOverlayHeader.startAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_out));
                 mOverlayOption.startAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_out));
                 mOverlayProgress.startAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_out));
                 mPlayPause.startAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_out));
                 mMenu.startAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_out));
-                //mOverlayTips.startAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_out));
             }
             if (mPresentation != null) {
                 mOverlayBackground.startAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_out));



More information about the Android mailing list