Formatting of remote file status adjusted

This commit is contained in:
steckbrief 2017-01-11 15:12:53 +01:00
parent 0a9bba2861
commit cd633f13b8
2 changed files with 3 additions and 3 deletions

View file

@ -238,9 +238,9 @@ public class MessageAdapter extends ArrayAdapter<Message> {
FileStatus fileStatus = message.getFileParams().getFileStatus();
if (fileStatus == FileStatus.DELETE_FAILED || fileStatus == FileStatus.DELETED || fileStatus == FileStatus.DELETING) {
viewHolder.remoteFileStatus.setVisibility(View.VISIBLE);
viewHolder.remoteFileStatus.setTypeface(null, Typeface.ITALIC);
switch (fileStatus) {
case DELETE_FAILED:
TextViewUtil.setColor(viewHolder.remoteFileStatus, R.color.error);
viewHolder.remoteFileStatus.setText(R.string.remote_filestatus_delete_failed);
break;
case DELETED:
@ -629,7 +629,7 @@ public class MessageAdapter extends ArrayAdapter<Message> {
viewHolder.status_message = TextViewUtil.visible(view, R.id.status_message);
}
if (SENT == type) {
viewHolder.remoteFileStatus = TextViewUtil.visible(view, R.id.remote_file_status);
viewHolder.remoteFileStatus = TextViewUtil.gone(view, R.id.remote_file_status);
}
view.setTag(viewHolder);

View file

@ -117,7 +117,7 @@
android:textColor="@color/secondaryText"
android:textSize="?attr/TextSizeInfo"
android:visibility="gone"
android:textStyle="italic"/>
android:textStyle="normal|italic"/>
</LinearLayout>
</LinearLayout>