Loading app/src/main/java/app/fedilab/android/BaseMainActivity.java +99 −91 Original line number Diff line number Diff line Loading @@ -852,6 +852,12 @@ public abstract class BaseMainActivity extends BaseActivity implements NetworkSt boolean fetchSharedMedia = sharedpreferences.getBoolean(getString(R.string.SET_RETRIEVE_METADATA_IF_URL_FROM_EXTERAL), true); boolean fetchShareContent = sharedpreferences.getBoolean(getString(R.string.SET_SHARE_DETAILS), true); if (url[0] != null && count == 1 && (fetchShareContent || fetchSharedMedia)) { if (!url[0].trim().equalsIgnoreCase(sharedText.trim())) { Bundle b = new Bundle(); b.putString(Helper.ARG_SHARE_TITLE, sharedSubject); b.putString(Helper.ARG_SHARE_DESCRIPTION, sharedText); CrossActionHelper.doCrossShare(BaseMainActivity.this, b); } else { new Thread(() -> { if (url[0].startsWith("www.")) url[0] = "http://" + url[0]; Loading Loading @@ -949,6 +955,8 @@ public abstract class BaseMainActivity extends BaseActivity implements NetworkSt } }).start(); } } else { Bundle b = new Bundle(); b.putString(Helper.ARG_SHARE_TITLE, sharedSubject); Loading app/src/main/java/app/fedilab/android/ui/drawer/ComposeAdapter.java +1 −1 Original line number Diff line number Diff line Loading @@ -434,7 +434,7 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder } if (description != null && description.trim().length() > 0) { statusList.get(position).text += description + "\n\n"; if (!description.contains(url)) { if (url != null && !description.contains(url)) { statusList.get(position).text += url; } } else if (content != null && content.trim().length() > 0) { Loading Loading
app/src/main/java/app/fedilab/android/BaseMainActivity.java +99 −91 Original line number Diff line number Diff line Loading @@ -852,6 +852,12 @@ public abstract class BaseMainActivity extends BaseActivity implements NetworkSt boolean fetchSharedMedia = sharedpreferences.getBoolean(getString(R.string.SET_RETRIEVE_METADATA_IF_URL_FROM_EXTERAL), true); boolean fetchShareContent = sharedpreferences.getBoolean(getString(R.string.SET_SHARE_DETAILS), true); if (url[0] != null && count == 1 && (fetchShareContent || fetchSharedMedia)) { if (!url[0].trim().equalsIgnoreCase(sharedText.trim())) { Bundle b = new Bundle(); b.putString(Helper.ARG_SHARE_TITLE, sharedSubject); b.putString(Helper.ARG_SHARE_DESCRIPTION, sharedText); CrossActionHelper.doCrossShare(BaseMainActivity.this, b); } else { new Thread(() -> { if (url[0].startsWith("www.")) url[0] = "http://" + url[0]; Loading Loading @@ -949,6 +955,8 @@ public abstract class BaseMainActivity extends BaseActivity implements NetworkSt } }).start(); } } else { Bundle b = new Bundle(); b.putString(Helper.ARG_SHARE_TITLE, sharedSubject); Loading
app/src/main/java/app/fedilab/android/ui/drawer/ComposeAdapter.java +1 −1 Original line number Diff line number Diff line Loading @@ -434,7 +434,7 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder } if (description != null && description.trim().length() > 0) { statusList.get(position).text += description + "\n\n"; if (!description.contains(url)) { if (url != null && !description.contains(url)) { statusList.get(position).text += url; } } else if (content != null && content.trim().length() > 0) { Loading