From 6a85fae8ca2db965eab1ca42e26b3efcf64f9263 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Sun, 17 Aug 2014 03:05:28 +0200 Subject: [PATCH] Fixed error text position in repository item layout (fixes #78). --- .../java/com/nutomic/syncthingandroid/util/ReposAdapter.java | 4 ++-- src/main/res/layout/repo_list_item.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/nutomic/syncthingandroid/util/ReposAdapter.java b/src/main/java/com/nutomic/syncthingandroid/util/ReposAdapter.java index 1f4f66f2..17576c11 100644 --- a/src/main/java/com/nutomic/syncthingandroid/util/ReposAdapter.java +++ b/src/main/java/com/nutomic/syncthingandroid/util/ReposAdapter.java @@ -56,10 +56,10 @@ public class ReposAdapter extends ArrayAdapter size.setText(RestApi.readableFileSize(getContext(), model.localBytes) + " / " + RestApi.readableFileSize(getContext(), model.globalBytes)); invalid.setText(model.invalid); - invalid.setVisibility((model.invalid.equals("")) ? View.INVISIBLE : View.VISIBLE); + invalid.setVisibility((model.invalid.equals("")) ? View.GONE : View.VISIBLE); } else { - invalid.setVisibility(View.INVISIBLE); + invalid.setVisibility(View.GONE); } return convertView; diff --git a/src/main/res/layout/repo_list_item.xml b/src/main/res/layout/repo_list_item.xml index 88a750cf..1b1a3c2b 100644 --- a/src/main/res/layout/repo_list_item.xml +++ b/src/main/res/layout/repo_list_item.xml @@ -45,8 +45,8 @@ + android:layout_height="wrap_content" />