mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-01-07 10:35:49 +01:00
chore: Log intent to be opened by chooser
This commit is contained in:
parent
4be65be414
commit
7c40c947ef
@ -2,9 +2,12 @@ package app.revanced.integrations.twitter.patches.links;
|
|||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
import android.util.Log;
|
||||||
|
|
||||||
public final class OpenLinksWithAppChooserPatch {
|
public final class OpenLinksWithAppChooserPatch {
|
||||||
public static void openWithChooser(final Context context, final Intent intent) {
|
public static void openWithChooser(final Context context, final Intent intent) {
|
||||||
|
Log.d("ReVanced", "Opening intent with chooser: " + intent);
|
||||||
|
|
||||||
intent.setAction("android.intent.action.VIEW");
|
intent.setAction("android.intent.action.VIEW");
|
||||||
|
|
||||||
context.startActivity(Intent.createChooser(intent, null));
|
context.startActivity(Intent.createChooser(intent, null));
|
||||||
|
Loading…
Reference in New Issue
Block a user