mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-23 03:11:30 +00:00
Fixed error text position in repository item layout (fixes #78).
This commit is contained in:
parent
6c737c6b68
commit
6a85fae8ca
2 changed files with 4 additions and 4 deletions
|
@ -56,10 +56,10 @@ public class ReposAdapter extends ArrayAdapter<RestApi.Repo>
|
|||
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;
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
<TextView
|
||||
android:id="@+id/invalid"
|
||||
android:textColor="@color/text_red"
|
||||
android:layout_below="@id/items"
|
||||
android:layout_below="@id/size"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
|
|
Loading…
Reference in a new issue