Removing all usage of LauncherProvider
Also fixing a race condition in model when an item update/delete task gets queued and executed after the model has reloaded (making the old data obsolete) Bug: 277345535 Bug: 263079498 Test: Presubmit Flag: N/A Change-Id: Ibd4bdbb3eece05b38b73a22a4be5f368df3754f0
This commit is contained in:
1 parent
859d0d87e2
commit
7b9e28f152
26 files changed
+326
-518
No files matched your search
@@ -30,6 +30,7 @@ import android.view.View;
|
||||
import androidx.test.filters.LargeTest;
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
|
||||
import com.android.launcher3.celllayout.FavoriteItemsTransaction;
|
||||
import com.android.launcher3.model.data.ItemInfo;
|
||||
import com.android.launcher3.model.data.LauncherAppWidgetInfo;
|
||||
import com.android.launcher3.testcomponent.WidgetConfigActivity;
|
||||
@@ -85,8 +86,7 @@ public class AddConfigWidgetTest extends AbstractLauncherUiTest {
|
||||
* @param acceptConfig accept the config activity
|
||||
*/
|
||||
private void runTest(boolean acceptConfig) throws Throwable {
|
||||
clearHomescreen();
|
||||
mDevice.pressHome();
|
||||
new FavoriteItemsTransaction(mTargetContext).commitAndLoadHome(mLauncher);
|
||||
|
||||
// Drag widget to homescreen
|
||||
WidgetConfigStartupMonitor monitor = new WidgetConfigStartupMonitor();
|
||||
|
||||
Reference in new issue
Block a user