From 2ce6a13f6096ed5e08b252e7e53255ef1027f65e Mon Sep 17 00:00:00 2001 From: Vadim Tryshev Date: Mon, 18 Jun 2018 19:14:44 -0700 Subject: Tapl library The public API of the library has finalized; flakiness has been removed; code polished. Bug: 110103162 Test: TaplTests suite Change-Id: Ic156bbfeedb1cb9c4a48ef907f97e396e8e81936 --- src/com/android/launcher3/widget/WidgetsFullSheet.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/com/android/launcher3/widget') diff --git a/src/com/android/launcher3/widget/WidgetsFullSheet.java b/src/com/android/launcher3/widget/WidgetsFullSheet.java index e94d81d75..b49322832 100644 --- a/src/com/android/launcher3/widget/WidgetsFullSheet.java +++ b/src/com/android/launcher3/widget/WidgetsFullSheet.java @@ -20,6 +20,7 @@ import android.animation.AnimatorListenerAdapter; import android.animation.PropertyValuesHolder; import android.content.Context; import android.graphics.Rect; +import android.support.annotation.VisibleForTesting; import android.util.AttributeSet; import android.util.Pair; import android.view.LayoutInflater; @@ -224,6 +225,11 @@ public class WidgetsFullSheet extends BaseWidgetSheet return sheet; } + @VisibleForTesting + public static WidgetsRecyclerView getWidgetsView(Launcher launcher) { + return launcher.findViewById(R.id.widgets_list_view); + } + @Override protected int getElementsRowCount() { return mAdapter.getItemCount(); -- cgit v1.2.3