[Android] Fix focus in AudioPlayer
Geoffrey Métais
git at videolan.org
Fri Mar 13 16:21:15 CET 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Mar 13 15:08:40 2015 +0100| [300ee8e0f9753d69da48a3ee68153fa89d76dd96] | committer: Geoffrey Métais
Fix focus in AudioPlayer
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=300ee8e0f9753d69da48a3ee68153fa89d76dd96
---
vlc-android/tv/res/layout/tv_audio_player.xml | 4 +++-
.../org/videolan/vlc/gui/tv/audioplayer/AudioPlayerActivity.java | 1 -
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/vlc-android/tv/res/layout/tv_audio_player.xml b/vlc-android/tv/res/layout/tv_audio_player.xml
index 8873b4e..6977ab6 100644
--- a/vlc-android/tv/res/layout/tv_audio_player.xml
+++ b/vlc-android/tv/res/layout/tv_audio_player.xml
@@ -101,7 +101,9 @@
android:nextFocusRight="@+id/button_next"
android:nextFocusLeft="@id/button_previous"
android:focusable="true"
- android:focusableInTouchMode="true"/>
+ android:focusableInTouchMode="true">
+ <requestFocus/>
+ </ImageView>
<ImageView
android:id="@+id/button_next"
android:layout_width="wrap_content"
diff --git a/vlc-android/tv/src/org/videolan/vlc/gui/tv/audioplayer/AudioPlayerActivity.java b/vlc-android/tv/src/org/videolan/vlc/gui/tv/audioplayer/AudioPlayerActivity.java
index 6e9bf49..b0cd477 100644
--- a/vlc-android/tv/src/org/videolan/vlc/gui/tv/audioplayer/AudioPlayerActivity.java
+++ b/vlc-android/tv/src/org/videolan/vlc/gui/tv/audioplayer/AudioPlayerActivity.java
@@ -141,7 +141,6 @@ public class AudioPlayerActivity extends Activity implements AudioServiceControl
mCover.setImageResource(R.drawable.background_cone);
else
mCover.setImageBitmap(cover);
- selectItem(mLocations.indexOf(mAudioController.getCurrentMediaLocation()));
}
}
More information about the Android
mailing list