Making the "Show track" button after an import clear the stack.

This commit is contained in:
Rodrigo Damazio
2011-05-25 19:21:56 -03:00
parent 90fe6921e2
commit 8942c31a5c
@@ -158,8 +158,10 @@ public class ImportActivity extends Activity {
public void onClick(DialogInterface arg0, int arg1) {
long lastTrackId = trackIds[trackIds.length - 1];
Uri trackUri = ContentUris.withAppendedId(TracksColumns.CONTENT_URI, lastTrackId);
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(trackUri, TracksColumns.CONTENT_ITEMTYPE);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
finish();
}