1
0
mirror of https://github.com/etesync/android synced 2024-11-15 20:38:58 +00:00

Collection header: set owner visibility to gone when there's no owner.

This commit is contained in:
Tom Hacohen 2017-05-10 16:29:31 +01:00
parent 1cf1d0f5b0
commit a3e4fc48ab
2 changed files with 2 additions and 0 deletions

View File

@ -98,6 +98,7 @@ public class ViewCollectionActivity extends BaseActivity implements Refreshable
if (account.name.equals(journalEntity.getOwner())) {
owner.setVisibility(View.GONE);
} else {
owner.setVisibility(View.VISIBLE);
owner.setText(getString(R.string.account_owner, journalEntity.getOwner()));
}
}

View File

@ -39,5 +39,6 @@
android:id="@+id/owner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
tools:text="Owner: some@email.com"/>
</LinearLayout>