OSDN Git Service

I had completely forgotten that the alternative seek method in the
authorMarco Nelissen <marcone@google.com>
Mon, 12 Oct 2009 22:59:52 +0000 (15:59 -0700)
committerMarco Nelissen <marcone@google.com>
Mon, 12 Oct 2009 23:25:05 +0000 (16:25 -0700)
music app was actually reachable, but monkey found it, and crashed it.
Fixes bug 2177755.

src/com/android/music/MediaPlaybackActivity.java

index 238d7fe..be1074d 100644 (file)
@@ -690,6 +690,7 @@ public class MediaPlaybackActivity extends Activity implements MusicUtils.Defs,
 
     private boolean seekMethod1(int keyCode)
     {
+        if (mService == null) return false;
         for(int x=0;x<10;x++) {
             for(int y=0;y<3;y++) {
                 if(keyboard[y][x] == keyCode) {