Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e63babe authored by Flavio Lerda's avatar Flavio Lerda
Browse files

Do not show the UI until the data is loaded.

Instead of updating the content of the UI when first opening the call
detail activity and then updating it, hide it until the data is loaded.

Bug: 5039572
Change-Id: I6daa4a8ecbc006e223cf5f4087776d71f2f3bbea
parent 146115ac
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -16,10 +16,12 @@

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:ex="http://schemas.android.com/apk/res/com.android.contacts"
    android:id="@+id/call_detail"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="horizontal"
    android:gravity="top"
    android:visibility="gone"
>
    <FrameLayout
        android:id="@+id/voicemail_status"
@@ -48,7 +50,6 @@
            android:layout_height="0dip"
            android:adjustViewBounds="true"
            android:scaleType="centerCrop"
            android:background="@drawable/ic_contact_picture"
        />
    </view>
    <LinearLayout
+1 −0
Original line number Diff line number Diff line
@@ -416,6 +416,7 @@ public class CallDetailActivity extends ListActivity {
                        new CallDetailHistoryAdapter(CallDetailActivity.this, mInflater,
                                mCallTypeHelper, details));
                loadContactPhotos(photoUri);
                findViewById(R.id.call_detail).setVisibility(View.VISIBLE);
            }
        });
    }