fixed status escaping
This commit is contained in:
parent
3922219794
commit
5cc46bc49e
|
@ -914,7 +914,7 @@ public class UserFragment extends BaseSupportFragment implements OnClickListener
|
|||
final ParcelableUser user = getUser();
|
||||
if (twitter == null || user == null) return;
|
||||
|
||||
final boolean isMyself = user.account_key.equals(user.key);
|
||||
final boolean isMyself = user.account_key.maybeEquals(user.key);
|
||||
final MenuItem mentionItem = menu.findItem(R.id.mention);
|
||||
if (mentionItem != null) {
|
||||
final String displayName = UserColorNameManager.decideDisplayName(user.nickname,
|
||||
|
@ -1304,7 +1304,7 @@ public class UserFragment extends BaseSupportFragment implements OnClickListener
|
|||
break;
|
||||
}
|
||||
case R.id.follow: {
|
||||
if (user.account_key.equals(user.key)) {
|
||||
if (user.account_key.maybeEquals(user.key)) {
|
||||
IntentUtils.openProfileEditor(getActivity(), user.account_key);
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -240,7 +240,7 @@ public class InternalTwitterContentUtils {
|
|||
|
||||
public static Pair<String, List<SpanItem>> formatStatusTextWithIndices(final Status status) {
|
||||
if (status == null) return null;
|
||||
final HtmlBuilder builder = new HtmlBuilder(status.getText(), false, true, true);
|
||||
final HtmlBuilder builder = new HtmlBuilder(status.getText(), false, true, false);
|
||||
parseEntities(builder, status);
|
||||
return builder.buildWithIndices();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue