Show resize frame when widget is added.

I referenced the code in Workspace.java that updates the widget view's
layout params before showing the resize frame.

Test: manual, AddWidgetTest and AddConfigWidgetTest tapl tests
Bug: 183437963
Change-Id: I6655917878fa22d6084b4bf39fc0661e7278d6f9
This commit is contained in:
Yogisha Dixit
2021-03-22 14:13:03 +00:00
parent 9b8932f579
commit 037a5362d8
4 changed files with 47 additions and 1 deletions

View File

@@ -58,6 +58,8 @@ public class AddWidgetTest extends AbstractLauncherUiTest {
openAllWidgets().
getWidget(widgetInfo.getLabel(mTargetContext.getPackageManager())).
dragToWorkspace(false, false);
// Dismiss widget resize frame.
mDevice.pressHome();
assertTrue(mActivityMonitor.itemExists(
(info, view) -> info instanceof LauncherAppWidgetInfo &&