From 885097341e1169cf85f38ddad214b22d3f16da83 Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Thu, 3 Sep 2020 10:00:01 -0400 Subject: [PATCH] Update PostViewer.java --- .../main/java/awais/instagrabber/activities/PostViewer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/awais/instagrabber/activities/PostViewer.java b/app/src/main/java/awais/instagrabber/activities/PostViewer.java index 6322d539..3d463df0 100755 --- a/app/src/main/java/awais/instagrabber/activities/PostViewer.java +++ b/app/src/main/java/awais/instagrabber/activities/PostViewer.java @@ -86,7 +86,7 @@ public final class PostViewer extends BaseLanguageActivity { private View viewsContainer, viewerCaptionParent; private GestureDetectorCompat gestureDetector; private SwipeEvent swipeEvent; - private CharSequence postCaption = null, postShortCode, postUserId; + private CharSequence postCaption = null, postUserId; private Resources resources; private boolean session = false, isFromShare, liked, saved, ok = false; private int slidePos = 0, lastSlidePos = 0; @@ -678,7 +678,7 @@ public final class PostViewer extends BaseLanguageActivity { Toast.makeText(getApplicationContext(), R.string.share_private_post, Toast.LENGTH_LONG).show(); Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND); sharingIntent.setType("text/plain"); - sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, "https://instagram.com/p/"+postShortCode); + sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, "https://instagram.com/p/"+postModel.getShortCode()); startActivity(Intent.createChooser(sharingIntent, (result.isPrivate()) ? getString(R.string.share_private_post) : getString(R.string.share_public_post))); } @@ -764,4 +764,4 @@ public final class PostViewer extends BaseLanguageActivity { else Toast.makeText(getApplicationContext(), R.string.downloader_unknown_error, Toast.LENGTH_SHORT).show(); } } -} \ No newline at end of file +}