fix player notification pending intent

This commit is contained in:
Akinwale Ariwodola 2020-06-05 09:42:45 +01:00
parent a4585de807
commit 8e6e0f0099

View file

@ -1643,11 +1643,14 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
@Nullable
@Override
public PendingIntent createCurrentContentIntent(Player player) {
if (nowPlayingClaimUrl != null) {
Intent launchIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(nowPlayingClaimUrl));
launchIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
PendingIntent intent = PendingIntent.getActivity(MainActivity.this, 0, launchIntent, 0);
return intent;
}
return null;
}
@Nullable
@Override