hide the view/edit contact screen till the contact gets loaded
This commit is contained in:
parent
c3ac30d47e
commit
758c01ba98
|
@ -161,6 +161,7 @@ class EditContactActivity : ContactActivity() {
|
|||
}
|
||||
|
||||
private fun gotContact() {
|
||||
contact_scrollview.beVisible()
|
||||
if (contact == null) {
|
||||
setupNewContact()
|
||||
} else {
|
||||
|
|
|
@ -127,6 +127,7 @@ class ViewContactActivity : ContactActivity() {
|
|||
}
|
||||
|
||||
private fun gotContact() {
|
||||
contact_scrollview.beVisible()
|
||||
setupViewContact()
|
||||
contact_send_sms.beVisibleIf(contact!!.phoneNumbers.isNotEmpty())
|
||||
contact_start_call.beVisibleIf(contact!!.phoneNumbers.isNotEmpty())
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/contact_scrollview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/contact_holder"
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/contact_scrollview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/contact_holder"
|
||||
|
|
Loading…
Reference in New Issue