mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 22:57:29 +00:00
Update PostViewer.java
This commit is contained in:
parent
44db2db57f
commit
885097341e
@ -86,7 +86,7 @@ public final class PostViewer extends BaseLanguageActivity {
|
|||||||
private View viewsContainer, viewerCaptionParent;
|
private View viewsContainer, viewerCaptionParent;
|
||||||
private GestureDetectorCompat gestureDetector;
|
private GestureDetectorCompat gestureDetector;
|
||||||
private SwipeEvent swipeEvent;
|
private SwipeEvent swipeEvent;
|
||||||
private CharSequence postCaption = null, postShortCode, postUserId;
|
private CharSequence postCaption = null, postUserId;
|
||||||
private Resources resources;
|
private Resources resources;
|
||||||
private boolean session = false, isFromShare, liked, saved, ok = false;
|
private boolean session = false, isFromShare, liked, saved, ok = false;
|
||||||
private int slidePos = 0, lastSlidePos = 0;
|
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();
|
Toast.makeText(getApplicationContext(), R.string.share_private_post, Toast.LENGTH_LONG).show();
|
||||||
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
|
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
|
||||||
sharingIntent.setType("text/plain");
|
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,
|
startActivity(Intent.createChooser(sharingIntent,
|
||||||
(result.isPrivate()) ? getString(R.string.share_private_post) : getString(R.string.share_public_post)));
|
(result.isPrivate()) ? getString(R.string.share_private_post) : getString(R.string.share_public_post)));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user