Skip to content

Commit

Permalink
Fix media controls notification showing disambiguation drawer
Browse files Browse the repository at this point in the history
Use direct intent to MainActivity instead of deep link intent.

Backport of fix in OdyseeTeam/odysee-android#212
  • Loading branch information
ktprograms committed May 23, 2022
1 parent 1e3a74c commit 7649e9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/io/lbry/browser/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -2083,7 +2083,9 @@ public CharSequence getCurrentContentTitle(Player player) {
@Override
public PendingIntent createCurrentContentIntent(Player player) {
if (nowPlayingClaimUrl != null) {
Intent launchIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(nowPlayingClaimUrl));
Intent launchIntent = new Intent(MainActivity.this, MainActivity.class);
launchIntent.setAction(Intent.ACTION_VIEW);
launchIntent.setData(Uri.parse(nowPlayingClaimUrl));
launchIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
return PendingIntent.getActivity(MainActivity.this, 0, launchIntent, 0);
}
Expand Down

0 comments on commit 7649e9d

Please sign in to comment.