Merge branch 'master' into new_api

This commit is contained in:
Mariotaku Lee 2015-05-08 13:36:09 +08:00
commit 8c110aeced
2 changed files with 4 additions and 10 deletions

View File

@ -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

View File

@ -754,7 +754,6 @@ public class StatusFragment extends BaseSupportFragment implements LoaderCallbac
profileTypeView.setVisibility(View.GONE);
}
// TODO Handle source click
final String timeString = Utils.formatToLongTimeString(context, timestamp);
if (!TextUtils.isEmpty(timeString) && !TextUtils.isEmpty(source)) {
timeSourceView.setText(Html.fromHtml(context.getString(R.string.time_source, timeString, source)));
@ -763,7 +762,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);