aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-12-06 03:02:58 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-12-06 03:02:58 +0000
commitf7eaa7ca06811e39b16dc80203f053e4cca118bc (patch)
tree565663cfe8c0234cef00860becdfa9cf3ad1c5ae /app/src
parent3d93cb37b92598969a748934ea582e67bdd6ac54 (diff)
downloadinfinity-for-reddit-f7eaa7ca06811e39b16dc80203f053e4cca118bc.tar
infinity-for-reddit-f7eaa7ca06811e39b16dc80203f053e4cca118bc.tar.gz
infinity-for-reddit-f7eaa7ca06811e39b16dc80203f053e4cca118bc.tar.bz2
infinity-for-reddit-f7eaa7ca06811e39b16dc80203f053e4cca118bc.tar.lz
infinity-for-reddit-f7eaa7ca06811e39b16dc80203f053e4cca118bc.tar.xz
infinity-for-reddit-f7eaa7ca06811e39b16dc80203f053e4cca118bc.tar.zst
infinity-for-reddit-f7eaa7ca06811e39b16dc80203f053e4cca118bc.zip
Share only the link of the post instead of title + link. Version 1.6.2.
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/CommentAndPostRecyclerViewAdapter.java6
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/CommentsListingRecyclerViewAdapter.java3
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/PostRecyclerViewAdapter.java6
3 files changed, 5 insertions, 10 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/CommentAndPostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/CommentAndPostRecyclerViewAdapter.java
index 2ec8178a..6c1c1130 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/CommentAndPostRecyclerViewAdapter.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/CommentAndPostRecyclerViewAdapter.java
@@ -917,8 +917,7 @@ public class CommentAndPostRecyclerViewAdapter extends RecyclerView.Adapter<Recy
try {
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
- String extraText = comment.getPermalink();
- intent.putExtra(Intent.EXTRA_TEXT, extraText);
+ intent.putExtra(Intent.EXTRA_TEXT, comment.getPermalink());
mActivity.startActivity(Intent.createChooser(intent, mActivity.getString(R.string.share)));
} catch (ActivityNotFoundException e) {
Toast.makeText(mActivity, R.string.no_activity_found_for_share, Toast.LENGTH_SHORT).show();
@@ -1623,8 +1622,7 @@ public class CommentAndPostRecyclerViewAdapter extends RecyclerView.Adapter<Recy
try {
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
- String extraText = mPost.getTitle() + "\n" + mPost.getPermalink();
- intent.putExtra(Intent.EXTRA_TEXT, extraText);
+ intent.putExtra(Intent.EXTRA_TEXT, mPost.getPermalink());
mActivity.startActivity(Intent.createChooser(intent, mActivity.getString(R.string.share)));
} catch (ActivityNotFoundException e) {
Toast.makeText(mActivity, R.string.no_activity_found_for_share, Toast.LENGTH_SHORT).show();
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/CommentsListingRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/CommentsListingRecyclerViewAdapter.java
index e898ddab..0ba6e917 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/CommentsListingRecyclerViewAdapter.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/CommentsListingRecyclerViewAdapter.java
@@ -204,8 +204,7 @@ public class CommentsListingRecyclerViewAdapter extends PagedListAdapter<Comment
try {
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
- String extraText = comment.getPermalink();
- intent.putExtra(Intent.EXTRA_TEXT, extraText);
+ intent.putExtra(Intent.EXTRA_TEXT, comment.getPermalink());
mContext.startActivity(Intent.createChooser(intent, mContext.getString(R.string.share)));
} catch (ActivityNotFoundException e) {
Toast.makeText(mContext, R.string.no_activity_found_for_share, Toast.LENGTH_SHORT).show();
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/PostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/PostRecyclerViewAdapter.java
index 85006d28..9b5dc638 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/PostRecyclerViewAdapter.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/PostRecyclerViewAdapter.java
@@ -710,8 +710,7 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView
try {
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
- String extraText = title + "\n" + permalink;
- intent.putExtra(Intent.EXTRA_TEXT, extraText);
+ intent.putExtra(Intent.EXTRA_TEXT, permalink);
mContext.startActivity(Intent.createChooser(intent, mContext.getString(R.string.share)));
} catch (ActivityNotFoundException e) {
Toast.makeText(mContext, R.string.no_activity_found_for_share, Toast.LENGTH_SHORT).show();
@@ -1255,8 +1254,7 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView
try {
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
- String extraText = title + "\n" + permalink;
- intent.putExtra(Intent.EXTRA_TEXT, extraText);
+ intent.putExtra(Intent.EXTRA_TEXT, permalink);
mContext.startActivity(Intent.createChooser(intent, mContext.getString(R.string.share)));
} catch (ActivityNotFoundException e) {
Toast.makeText(mContext, R.string.no_activity_found_for_share, Toast.LENGTH_SHORT).show();