hide the view/edit contact screen till the contact gets loaded

This commit is contained in:
tibbi 2018-11-30 18:06:20 +01:00
parent c3ac30d47e
commit 758c01ba98
4 changed files with 6 additions and 2 deletions

View File

@ -161,6 +161,7 @@ class EditContactActivity : ContactActivity() {
}
private fun gotContact() {
contact_scrollview.beVisible()
if (contact == null) {
setupNewContact()
} else {

View File

@ -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())

View File

@ -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"

View File

@ -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"