1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2026-04-23 07:11:23 +00:00

Fix toast shown when falling back to Google Play Store URL and the action of Open with Kodi button in the player

Add a boolean param, showToast, in ShareUtils.openIntentInApp and only show toast "No app on your device can open this" if this boolean is true.
Fix the action of play with Kodi button by applying the fix provided in #5599 (adding the flag Intent.FLAG_ACTIVITY_NEW_TASK to the intent in NavigationHelper.playWithKore method).
Do also some cleanup in viewWithFileProvider and shareFile methods of MissionAdapter class.
This commit is contained in:
TiA4f8R
2021-03-13 12:37:54 +01:00
parent ae9349e36c
commit 9e9d1a04e4
4 changed files with 47 additions and 43 deletions

View File

@@ -252,7 +252,7 @@ public final class NavigationHelper {
public static void resolveActivityOrAskToInstall(final Context context, final Intent intent) {
if (intent.resolveActivity(context.getPackageManager()) != null) {
ShareUtils.openIntentInApp(context, intent);
ShareUtils.openIntentInApp(context, intent, false);
} else {
if (context instanceof Activity) {
new AlertDialog.Builder(context)