From 7649e9daacf9ebb426287848ee8f84af32820ec4 Mon Sep 17 00:00:00 2001 From: kt programs Date: Mon, 23 May 2022 16:34:05 +0800 Subject: [PATCH] Fix media controls notification showing disambiguation drawer Use direct intent to MainActivity instead of deep link intent. Backport of fix in https://github.com/OdyseeTeam/odysee-android/pull/212 --- app/src/main/java/io/lbry/browser/MainActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/lbry/browser/MainActivity.java b/app/src/main/java/io/lbry/browser/MainActivity.java index 5bee4b9b..4e24d1c7 100644 --- a/app/src/main/java/io/lbry/browser/MainActivity.java +++ b/app/src/main/java/io/lbry/browser/MainActivity.java @@ -2083,7 +2083,9 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener @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); }