mirror of
https://github.com/etesync/android
synced 2025-06-24 00:48:49 +00:00
Collection header: set owner visibility to gone when there's no owner.
This commit is contained in:
parent
1cf1d0f5b0
commit
a3e4fc48ab
@ -98,6 +98,7 @@ public class ViewCollectionActivity extends BaseActivity implements Refreshable
|
|||||||
if (account.name.equals(journalEntity.getOwner())) {
|
if (account.name.equals(journalEntity.getOwner())) {
|
||||||
owner.setVisibility(View.GONE);
|
owner.setVisibility(View.GONE);
|
||||||
} else {
|
} else {
|
||||||
|
owner.setVisibility(View.VISIBLE);
|
||||||
owner.setText(getString(R.string.account_owner, journalEntity.getOwner()));
|
owner.setText(getString(R.string.account_owner, journalEntity.getOwner()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,5 +39,6 @@
|
|||||||
android:id="@+id/owner"
|
android:id="@+id/owner"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:visibility="gone"
|
||||||
tools:text="Owner: some@email.com"/>
|
tools:text="Owner: some@email.com"/>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
Loading…
Reference in New Issue
Block a user