mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
Revert "Clear only workspace shortcut / widget related tests"
This reverts commit 22be1a47f4.
Reason for revert: Breaks another test
Bug: 202546679
Change-Id: I796c508a6d7c00ec8c1d48e3517453f9eca0616c
This commit is contained in:
@@ -288,14 +288,13 @@ public abstract class AbstractLauncherUiTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes all items from workspace and populate default hotseat.
|
||||
* Removes all icons from homescreen and hotseat.
|
||||
*/
|
||||
public void clearWorkspace() {
|
||||
// First clear data to ensure hotseat is populated.
|
||||
clearLauncherData();
|
||||
// Next make provider call to clear everything apart from hotseat.
|
||||
public void clearHomescreen() throws Throwable {
|
||||
LauncherSettings.Settings.call(mTargetContext.getContentResolver(),
|
||||
LauncherSettings.Settings.METHOD_CLEAR_WORKSPACE);
|
||||
LauncherSettings.Settings.METHOD_CREATE_EMPTY_DB);
|
||||
LauncherSettings.Settings.call(mTargetContext.getContentResolver(),
|
||||
LauncherSettings.Settings.METHOD_CLEAR_EMPTY_DB_FLAG);
|
||||
resetLoaderState();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user