[Android] Audio player: remove useless code for the ImageButton focus changes
Adrien Maglo
git at videolan.org
Fri Dec 6 10:43:10 CET 2013
vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Fri Dec 6 10:27:52 2013 +0100| [7c80f10c701672e796c6df0f68aed799d41bd4ee] | committer: Adrien Maglo
Audio player: remove useless code for the ImageButton focus changes
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=7c80f10c701672e796c6df0f68aed799d41bd4ee
---
.../vlc/gui/audio/AudioPlayerFragment.java | 20 --------------------
1 file changed, 20 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerFragment.java
index 5353bec..7505b4f 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerFragment.java
@@ -172,26 +172,6 @@ public class AudioPlayerFragment extends SherlockFragment implements IAudioPlaye
}
});
- View.OnFocusChangeListener listener = new View.OnFocusChangeListener() {
- @Override
- public void onFocusChange(View view, boolean hasFocus) {
- if(hasFocus)
- view.setBackgroundColor(Color.parseColor("#FFBA6F"));
- else
- view.setBackgroundColor(Color.TRANSPARENT);
- }
- };
- mShuffle.setOnFocusChangeListener(listener);
- mRepeat.setOnFocusChangeListener(listener);
- mAdvFunc.setOnFocusChangeListener(listener);
- mTimeline.setOnFocusChangeListener(listener);
- mPrevious.setOnFocusChangeListener(listener);
- mPlayPause.setOnFocusChangeListener(listener);
- mStop.setOnFocusChangeListener(listener);
- mNext.setOnFocusChangeListener(listener);
-
-
-
getActivity().setVolumeControlStream(AudioManager.STREAM_MUSIC);
return v;
More information about the Android
mailing list