Improving diagnostics when can't find a widget
Instead of "exceeded number of attempts" now printing that can't scroll to widget. Change-Id: Ia6f582e038d68fc35f152d94e592f60ef0bc2cf4
This commit is contained in:
1 parent
7e3d07fc77
commit
fb099c7fe1
3 files changed
+20
No files matched your search
@@ -33,6 +33,7 @@ import com.android.launcher3.LauncherAppState;
|
||||
import com.android.launcher3.LauncherState;
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.util.ResourceBasedOverride;
|
||||
import com.android.launcher3.widget.WidgetsFullSheet;
|
||||
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.function.Function;
|
||||
@@ -92,6 +93,11 @@ public class TestInformationHandler implements ResourceBasedOverride {
|
||||
l -> l.getAppsView().getActiveRecyclerView().getCurrentScrollY());
|
||||
}
|
||||
|
||||
case TestProtocol.REQUEST_WIDGETS_SCROLL_Y: {
|
||||
return getLauncherUIProperty(Bundle::putInt,
|
||||
l -> WidgetsFullSheet.getWidgetsView(l).getCurrentScrollY());
|
||||
}
|
||||
|
||||
case TestProtocol.REQUEST_WINDOW_INSETS: {
|
||||
return getUIProperty(Bundle::putParcelable, a -> {
|
||||
WindowInsets insets = a.getWindow()
|
||||
|
||||
Reference in new issue
Block a user