From 2ee88646527506160abffadd97f1180fe8600ff9 Mon Sep 17 00:00:00 2001 From: Mariotaku Lee Date: Fri, 8 May 2015 13:33:55 +0800 Subject: [PATCH] fixed #139 make source link clickable --- .../twidere/fragment/support/DraftsFragment.java | 11 +++-------- .../twidere/fragment/support/StatusFragment.java | 3 +-- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/twidere/src/main/java/org/mariotaku/twidere/fragment/support/DraftsFragment.java b/twidere/src/main/java/org/mariotaku/twidere/fragment/support/DraftsFragment.java index 3652a8694..5543572e8 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/fragment/support/DraftsFragment.java +++ b/twidere/src/main/java/org/mariotaku/twidere/fragment/support/DraftsFragment.java @@ -353,14 +353,9 @@ public class DraftsFragment extends BaseSupportFragment implements Constants, Lo @Override protected void onPreExecute() { super.onPreExecute(); - mHandler.post(new Runnable() { - @Override - public void run() { - final SupportProgressDialogFragment f = SupportProgressDialogFragment.show(mActivity, - FRAGMENT_TAG_DELETING_DRAFTS); - f.setCancelable(false); - } - }); + final SupportProgressDialogFragment f = SupportProgressDialogFragment.show(mActivity, + FRAGMENT_TAG_DELETING_DRAFTS); + f.setCancelable(false); } @Override diff --git a/twidere/src/main/java/org/mariotaku/twidere/fragment/support/StatusFragment.java b/twidere/src/main/java/org/mariotaku/twidere/fragment/support/StatusFragment.java index e97d90622..528dcae45 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/fragment/support/StatusFragment.java +++ b/twidere/src/main/java/org/mariotaku/twidere/fragment/support/StatusFragment.java @@ -761,8 +761,7 @@ public class StatusFragment extends BaseSupportFragment implements LoaderCallbac } else if (!TextUtils.isEmpty(timeString) && TextUtils.isEmpty(source)) { timeSourceView.setText(timeString); } - timeSourceView.setMovementMethod(null); - + timeSourceView.setMovementMethod(StatusContentMovementMethod.getInstance()); textView.setText(Html.fromHtml(status.text_html)); linkify.applyAllLinks(textView, status.account_id, layoutPosition, status.is_possibly_sensitive);