mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-11-10 12:47:26 +01:00
Share only the link of the post instead of title + link. Version 1.6.2.
This commit is contained in:
parent
3d93cb37b9
commit
f7eaa7ca06
@ -6,8 +6,8 @@ android {
|
|||||||
applicationId "ml.docilealligator.infinityforreddit"
|
applicationId "ml.docilealligator.infinityforreddit"
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 29
|
targetSdkVersion 29
|
||||||
versionCode 23
|
versionCode 24
|
||||||
versionName "1.6.1"
|
versionName "1.6.2"
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
@ -917,8 +917,7 @@ public class CommentAndPostRecyclerViewAdapter extends RecyclerView.Adapter<Recy
|
|||||||
try {
|
try {
|
||||||
Intent intent = new Intent(Intent.ACTION_SEND);
|
Intent intent = new Intent(Intent.ACTION_SEND);
|
||||||
intent.setType("text/plain");
|
intent.setType("text/plain");
|
||||||
String extraText = comment.getPermalink();
|
intent.putExtra(Intent.EXTRA_TEXT, comment.getPermalink());
|
||||||
intent.putExtra(Intent.EXTRA_TEXT, extraText);
|
|
||||||
mActivity.startActivity(Intent.createChooser(intent, mActivity.getString(R.string.share)));
|
mActivity.startActivity(Intent.createChooser(intent, mActivity.getString(R.string.share)));
|
||||||
} catch (ActivityNotFoundException e) {
|
} catch (ActivityNotFoundException e) {
|
||||||
Toast.makeText(mActivity, R.string.no_activity_found_for_share, Toast.LENGTH_SHORT).show();
|
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 {
|
try {
|
||||||
Intent intent = new Intent(Intent.ACTION_SEND);
|
Intent intent = new Intent(Intent.ACTION_SEND);
|
||||||
intent.setType("text/plain");
|
intent.setType("text/plain");
|
||||||
String extraText = mPost.getTitle() + "\n" + mPost.getPermalink();
|
intent.putExtra(Intent.EXTRA_TEXT, mPost.getPermalink());
|
||||||
intent.putExtra(Intent.EXTRA_TEXT, extraText);
|
|
||||||
mActivity.startActivity(Intent.createChooser(intent, mActivity.getString(R.string.share)));
|
mActivity.startActivity(Intent.createChooser(intent, mActivity.getString(R.string.share)));
|
||||||
} catch (ActivityNotFoundException e) {
|
} catch (ActivityNotFoundException e) {
|
||||||
Toast.makeText(mActivity, R.string.no_activity_found_for_share, Toast.LENGTH_SHORT).show();
|
Toast.makeText(mActivity, R.string.no_activity_found_for_share, Toast.LENGTH_SHORT).show();
|
||||||
|
@ -204,8 +204,7 @@ public class CommentsListingRecyclerViewAdapter extends PagedListAdapter<Comment
|
|||||||
try {
|
try {
|
||||||
Intent intent = new Intent(Intent.ACTION_SEND);
|
Intent intent = new Intent(Intent.ACTION_SEND);
|
||||||
intent.setType("text/plain");
|
intent.setType("text/plain");
|
||||||
String extraText = comment.getPermalink();
|
intent.putExtra(Intent.EXTRA_TEXT, comment.getPermalink());
|
||||||
intent.putExtra(Intent.EXTRA_TEXT, extraText);
|
|
||||||
mContext.startActivity(Intent.createChooser(intent, mContext.getString(R.string.share)));
|
mContext.startActivity(Intent.createChooser(intent, mContext.getString(R.string.share)));
|
||||||
} catch (ActivityNotFoundException e) {
|
} catch (ActivityNotFoundException e) {
|
||||||
Toast.makeText(mContext, R.string.no_activity_found_for_share, Toast.LENGTH_SHORT).show();
|
Toast.makeText(mContext, R.string.no_activity_found_for_share, Toast.LENGTH_SHORT).show();
|
||||||
|
@ -710,8 +710,7 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView
|
|||||||
try {
|
try {
|
||||||
Intent intent = new Intent(Intent.ACTION_SEND);
|
Intent intent = new Intent(Intent.ACTION_SEND);
|
||||||
intent.setType("text/plain");
|
intent.setType("text/plain");
|
||||||
String extraText = title + "\n" + permalink;
|
intent.putExtra(Intent.EXTRA_TEXT, permalink);
|
||||||
intent.putExtra(Intent.EXTRA_TEXT, extraText);
|
|
||||||
mContext.startActivity(Intent.createChooser(intent, mContext.getString(R.string.share)));
|
mContext.startActivity(Intent.createChooser(intent, mContext.getString(R.string.share)));
|
||||||
} catch (ActivityNotFoundException e) {
|
} catch (ActivityNotFoundException e) {
|
||||||
Toast.makeText(mContext, R.string.no_activity_found_for_share, Toast.LENGTH_SHORT).show();
|
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 {
|
try {
|
||||||
Intent intent = new Intent(Intent.ACTION_SEND);
|
Intent intent = new Intent(Intent.ACTION_SEND);
|
||||||
intent.setType("text/plain");
|
intent.setType("text/plain");
|
||||||
String extraText = title + "\n" + permalink;
|
intent.putExtra(Intent.EXTRA_TEXT, permalink);
|
||||||
intent.putExtra(Intent.EXTRA_TEXT, extraText);
|
|
||||||
mContext.startActivity(Intent.createChooser(intent, mContext.getString(R.string.share)));
|
mContext.startActivity(Intent.createChooser(intent, mContext.getString(R.string.share)));
|
||||||
} catch (ActivityNotFoundException e) {
|
} catch (ActivityNotFoundException e) {
|
||||||
Toast.makeText(mContext, R.string.no_activity_found_for_share, Toast.LENGTH_SHORT).show();
|
Toast.makeText(mContext, R.string.no_activity_found_for_share, Toast.LENGTH_SHORT).show();
|
||||||
|
Loading…
Reference in New Issue
Block a user