OSDN Git Service

Fix issue with repeatedly selecting the music notification.
[android-x86/packages-apps-Music.git] / src / com / android / music / MusicUtils.java
index ba28c57..398f462 100644 (file)
@@ -803,7 +803,7 @@ public class MusicUtils {
             sService.play();
         } catch (RemoteException ex) {
         } finally {
-            Intent intent = new Intent(context, MediaPlaybackActivity.class)
+            Intent intent = new Intent("com.android.music.PLAYBACK_VIEWER")
                 .setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
             context.startActivity(intent);
         }
@@ -1176,10 +1176,10 @@ public class MusicUtils {
         }
 
         final TabWidget ll = (TabWidget) a.findViewById(R.id.buttonbar);
-        ll.setCurrentTab((Integer) v.getTag());
 
         activateTab(a, id);
         if (id != R.id.nowplayingtab) {
+            ll.setCurrentTab((Integer) v.getTag());
             setIntPref(a, "activetab", id);
         }
     }