diff --git a/res/layout/widgets_view.xml b/res/layout/widgets_view.xml index e55f6f0850..0503466de3 100644 --- a/res/layout/widgets_view.xml +++ b/res/layout/widgets_view.xml @@ -49,6 +49,12 @@ android:theme="@style/CustomOverscroll.Dark" android:layout_width="match_parent" android:layout_height="match_parent" /> + + diff --git a/src/com/android/launcher3/widget/WidgetsContainerView.java b/src/com/android/launcher3/widget/WidgetsContainerView.java index 23d04331f8..a76f0af664 100644 --- a/src/com/android/launcher3/widget/WidgetsContainerView.java +++ b/src/com/android/launcher3/widget/WidgetsContainerView.java @@ -26,6 +26,7 @@ import android.support.v7.widget.RecyclerView.State; import android.util.AttributeSet; import android.util.Log; import android.view.View; +import android.view.ViewGroup; import android.widget.Toast; import com.android.launcher3.BaseContainerView; @@ -329,6 +330,11 @@ public class WidgetsContainerView extends BaseContainerView mRecyclerView.setWidgets(model); mAdapter.setWidgetsModel(model); mAdapter.notifyDataSetChanged(); + + View loader = getContentView().findViewById(R.id.loader); + if (loader != null) { + ((ViewGroup) getContentView()).removeView(loader); + } } public boolean isEmpty() {