[Android] disable SongList from AudioPlayerActivity for now.

Sébastien Toque git at videolan.org
Fri Jun 22 00:06:41 CEST 2012


android | branch: master | Sébastien Toque <xilasz at gmail.com> | Fri Jun 22 00:00:15 2012 +0200| [f085e10ca3f28c937ae331fbb015066488db851e] | committer: Sébastien Toque

disable SongList from AudioPlayerActivity for now.

Fragments can't used with startActivity

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

 .../src/org/videolan/vlc/gui/audio/AudioPlayerActivity.java   |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerActivity.java
index 7ca0e01..048949a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayerActivity.java
@@ -195,9 +195,12 @@ public class AudioPlayerActivity extends Activity implements IAudioPlayer {
     }
 
     public void onTextClick(View view) {
-        Intent intent = new Intent(this, AudioListFragment.class);
-        intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
-        startActivity(intent);
+        //FIXME disabled until AudioPlayerActivity is converted to a fragment
+        // it's not possible to call startActivity on a Fragment.
+
+        //Intent intent = new Intent(this, AudioListFragment.class);
+        //intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
+        //startActivity(intent);
     }
 
     public void onPlayPauseClick(View view) {



More information about the Android mailing list