Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

Commit

Permalink
chore: Log intent to be opened by chooser
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Mar 12, 2024
1 parent 4be65be commit 7c40c94
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

import android.content.Context;
import android.content.Intent;
import android.util.Log;

public final class OpenLinksWithAppChooserPatch {
public static void openWithChooser(final Context context, final Intent intent) {
Log.d("ReVanced", "Opening intent with chooser: " + intent);

intent.setAction("android.intent.action.VIEW");

context.startActivity(Intent.createChooser(intent, null));
Expand Down

0 comments on commit 7c40c94

Please sign in to comment.