From 502df0b03badbce57a426e686104806b6eb8f967 Mon Sep 17 00:00:00 2001 From: blankie Date: Thu, 28 Jul 2022 21:12:28 +0700 Subject: [PATCH] Fix code --- app/src/main/java/com/blankie/unshortify/ShareActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/blankie/unshortify/ShareActivity.java b/app/src/main/java/com/blankie/unshortify/ShareActivity.java index a72407b..a62193e 100644 --- a/app/src/main/java/com/blankie/unshortify/ShareActivity.java +++ b/app/src/main/java/com/blankie/unshortify/ShareActivity.java @@ -93,7 +93,7 @@ public class ShareActivity extends Activity { final Uri unshortifiedUrl = builder.scheme("https") .authority("www.youtube.com") .path("/watch") - .appendQueryParameter("v", pathSegments[2]) + .appendQueryParameter("v", videoId) .build(); final Intent unshortifiedIntent = new Intent(Intent.ACTION_VIEW, unshortifiedUrl);