From 9db35f7a371634a17bde32699186f44b1564b9a2 Mon Sep 17 00:00:00 2001 From: Sebastian Franco Date: Tue, 27 Dec 2022 18:39:10 +0000 Subject: [PATCH] Remove unused Throw Throwable from clearHomescreen method Test: presubmit Bug: 263802298 Change-Id: I4b81e044eb4f6a84730fb4d61403cbfcadefd282 --- .../com/android/launcher3/celllayout/TestWorkspaceBuilder.java | 2 +- tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/src/com/android/launcher3/celllayout/TestWorkspaceBuilder.java b/tests/src/com/android/launcher3/celllayout/TestWorkspaceBuilder.java index 16448afda0..7e3588b944 100644 --- a/tests/src/com/android/launcher3/celllayout/TestWorkspaceBuilder.java +++ b/tests/src/com/android/launcher3/celllayout/TestWorkspaceBuilder.java @@ -120,7 +120,7 @@ public class TestWorkspaceBuilder { * be clean otherwise this doesn't overrides the existing icons. */ public FavoriteItemsTransaction fillHotseatIcons(FavoriteItemsTransaction transaction) { - int hotseatCount = InvariantDeviceProfile.INSTANCE.get(mContext).numShownHotseatIcons; + int hotseatCount = InvariantDeviceProfile.INSTANCE.get(mContext).numDatabaseHotseatIcons; for (int i = 0; i < hotseatCount; i++) { transaction.addItem(getHotseatValues(i)); } diff --git a/tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java b/tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java index 70d122bc90..cf21dd723f 100644 --- a/tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java +++ b/tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java @@ -299,7 +299,7 @@ public abstract class AbstractLauncherUiTest { /** * Removes all icons from homescreen and hotseat. */ - public void clearHomescreen() throws Throwable { + public void clearHomescreen() { LauncherSettings.Settings.call(mTargetContext.getContentResolver(), LauncherSettings.Settings.METHOD_CREATE_EMPTY_DB); LauncherSettings.Settings.call(mTargetContext.getContentResolver(),