1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-23 11:21:29 +00:00

Fixed error text position in repository item layout (fixes #78).

This commit is contained in:
Felix Ableitner 2014-08-17 03:05:28 +02:00
parent 6c737c6b68
commit 6a85fae8ca
2 changed files with 4 additions and 4 deletions

View file

@ -56,10 +56,10 @@ public class ReposAdapter extends ArrayAdapter<RestApi.Repo>
size.setText(RestApi.readableFileSize(getContext(), model.localBytes) + " / " + size.setText(RestApi.readableFileSize(getContext(), model.localBytes) + " / " +
RestApi.readableFileSize(getContext(), model.globalBytes)); RestApi.readableFileSize(getContext(), model.globalBytes));
invalid.setText(model.invalid); invalid.setText(model.invalid);
invalid.setVisibility((model.invalid.equals("")) ? View.INVISIBLE : View.VISIBLE); invalid.setVisibility((model.invalid.equals("")) ? View.GONE : View.VISIBLE);
} }
else { else {
invalid.setVisibility(View.INVISIBLE); invalid.setVisibility(View.GONE);
} }
return convertView; return convertView;

View file

@ -45,8 +45,8 @@
<TextView <TextView
android:id="@+id/invalid" android:id="@+id/invalid"
android:textColor="@color/text_red" android:textColor="@color/text_red"
android:layout_below="@id/items" android:layout_below="@id/size"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content"/> android:layout_height="wrap_content" />
</RelativeLayout> </RelativeLayout>