bug fix, added placeholder for empty reply username
This commit is contained in:
parent
d2f40f21f7
commit
cb6145d402
|
@ -166,7 +166,10 @@ public class StatusHolder extends ViewHolder implements OnClickListener {
|
|||
if (status.getRepliedStatusId() > 0) {
|
||||
replyIcon.setVisibility(View.VISIBLE);
|
||||
replyname.setVisibility(View.VISIBLE);
|
||||
replyname.setText(status.getReplyName());
|
||||
if (!status.getReplyName().isEmpty())
|
||||
replyname.setText(status.getReplyName());
|
||||
else
|
||||
replyname.setText(R.string.status_replyname_empty);
|
||||
} else {
|
||||
replyIcon.setVisibility(View.GONE);
|
||||
replyname.setVisibility(View.GONE);
|
||||
|
|
|
@ -59,7 +59,7 @@ public class AccountDatabase {
|
|||
values.put(AccountTable.CLIENT_SECRET, account.getConsumerSecret());
|
||||
values.put(AccountTable.API, account.getApiType());
|
||||
values.put(AccountTable.ACCESS_TOKEN, account.getOauthToken());
|
||||
values.put(AccountTable.ACCESS_TOKEN, account.getOauthToken());
|
||||
values.put(AccountTable.TOKEN_SECRET, account.getOauthSecret());
|
||||
values.put(AccountTable.BEARER, account.getBearerToken());
|
||||
SQLiteDatabase db = dataHelper.getDatabase();
|
||||
db.beginTransaction();
|
||||
|
|
|
@ -675,7 +675,10 @@ public class StatusActivity extends AppCompatActivity implements OnClickListener
|
|||
statusText.setVisibility(GONE);
|
||||
}
|
||||
if (status.getRepliedStatusId() > 0) {
|
||||
replyName.setText(status.getReplyName());
|
||||
if (!status.getReplyName().isEmpty())
|
||||
replyName.setText(status.getReplyName());
|
||||
else
|
||||
replyName.setText(R.string.status_replyname_empty);
|
||||
replyName.setVisibility(VISIBLE);
|
||||
} else {
|
||||
replyName.setVisibility(GONE);
|
||||
|
|
|
@ -249,4 +249,5 @@
|
|||
<string name="error_empty_token">Bitte Schlüssel hinzufügen</string>
|
||||
<string name="info_account_selected">%1$s ausgewählt</string>
|
||||
<string name="menu_message">Nachricht schreiben</string>
|
||||
<string name="status_replyname_empty">Antwort</string>
|
||||
</resources>
|
|
@ -284,5 +284,6 @@
|
|||
<string name="info_user_follow_request">%1$s request to follow you</string>
|
||||
<string name="info_user_mention">%1$s mentioned you</string>
|
||||
<string name="info_user_repost">%1$s reposted your status</string>
|
||||
<string name="status_replyname_empty">Reply</string>
|
||||
|
||||
</resources>
|
Loading…
Reference in New Issue