mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2025-01-23 13:30:17 +01:00
fixed travis build problem
added suspended message
This commit is contained in:
parent
7abc7fdb84
commit
3d99ead56c
@ -24,7 +24,7 @@ android:
|
||||
sudo: false
|
||||
|
||||
jdk:
|
||||
- openjdk8
|
||||
- oraclejdk8
|
||||
|
||||
env:
|
||||
global:
|
||||
|
@ -1004,11 +1004,13 @@ public class StatusFragment extends BaseSupportFragment implements LoaderCallbac
|
||||
|
||||
quoteIndicator.setVisibility(View.VISIBLE);
|
||||
|
||||
boolean originalIdAvailable = !TextUtils.isEmpty(status.quoted_id);
|
||||
boolean quoteContentAvailable = status.quoted_text_plain != null
|
||||
&& status.quoted_text_unescaped != null;
|
||||
|
||||
quoteOriginalLink.setVisibility(originalIdAvailable ? View.VISIBLE : View.GONE);
|
||||
|
||||
if (quoteContentAvailable) {
|
||||
quoteOriginalLink.setVisibility(View.VISIBLE);
|
||||
quotedNameView.setVisibility(View.VISIBLE);
|
||||
quotedTextView.setVisibility(View.VISIBLE);
|
||||
|
||||
@ -1041,7 +1043,6 @@ public class StatusFragment extends BaseSupportFragment implements LoaderCallbac
|
||||
|
||||
quoteIndicator.setColor(status.quoted_user_color);
|
||||
} else {
|
||||
quoteOriginalLink.setVisibility(View.GONE);
|
||||
quotedNameView.setVisibility(View.GONE);
|
||||
quotedTextView.setVisibility(View.VISIBLE);
|
||||
|
||||
|
@ -50,6 +50,7 @@ public class StatusCodeMessageUtils {
|
||||
TWITTER_ERROR_CODE_MESSAGES.put(ErrorInfo.STATUS_IS_DUPLICATE, R.string.error_twitter_187);
|
||||
TWITTER_ERROR_CODE_MESSAGES.put(193, R.string.error_twitter_193);
|
||||
TWITTER_ERROR_CODE_MESSAGES.put(215, R.string.error_twitter_215);
|
||||
TWITTER_ERROR_CODE_MESSAGES.put(326, R.string.error_twitter_326);
|
||||
|
||||
HTTP_STATUS_CODE_MESSAGES.put(407, R.string.error_http_407);
|
||||
}
|
||||
|
@ -34,5 +34,6 @@
|
||||
<string name="error_twitter_193">The photo you upload is too large.</string>
|
||||
<!-- 215 Bad authentication data: Typically sent with 1.1 responses with HTTP code 400. The method requires authentication but it was not presented or was wholly invalid -->
|
||||
<string name="error_twitter_215">You may need to sign in again.</string>
|
||||
<string name="error_twitter_326">Your account was suspended, please visit https://twitter.com/ for details.</string>
|
||||
|
||||
</resources>
|
Loading…
Reference in New Issue
Block a user