diff options
Diffstat (limited to 'src/com/android/car/dialer/widget/LoadingFrameLayout.java')
-rw-r--r-- | src/com/android/car/dialer/widget/LoadingFrameLayout.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/com/android/car/dialer/widget/LoadingFrameLayout.java b/src/com/android/car/dialer/widget/LoadingFrameLayout.java index 1011bed2..0f21a478 100644 --- a/src/com/android/car/dialer/widget/LoadingFrameLayout.java +++ b/src/com/android/car/dialer/widget/LoadingFrameLayout.java @@ -228,7 +228,7 @@ public class LoadingFrameLayout extends FrameLayout { if (mState != state) { L.d(TAG, "Switch to state: %d", state); // Hides, or shows, all the children, including the loading and error views. - setChildVisibility(state == State.CONTENT ? View.VISIBLE : View.GONE); + ViewUtils.setVisible((View) findViewById(R.id.list_view), state == State.CONTENT); // Corrects the visibility setting for error and loading views since they are // shown independently of the views content. @@ -240,13 +240,6 @@ public class LoadingFrameLayout extends FrameLayout { } } - private void setChildVisibility(int visibility) { - int childCount = getChildCount(); - for (int i = 0; i < childCount; i++) { - getChildAt(i).setVisibility(visibility); - } - } - /** * Container for views held by this LoadingFrameLayout. Used for deferring view inflation until * the view is about to be shown. |