feat: Add option to clear home screen in settings (#6125)

Signed-off-by: abhixv <abhi.sharma1@hotmail.com>
This commit is contained in:
Abhishek Sharma authored and Pun Butrach committed 2026-01-10 20:51:01 +07:00
1 parent 9898749619
commit 5f3a03f4fb
1577 files changed
+112559 -80244

No files matched your search

@@ -23,27 +23,21 @@ import android.content.Intent;
import android.platform.test.annotations.LargeTest;
import android.view.KeyEvent;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.runner.AndroidJUnit4;
import com.android.launcher3.allapps.ActivityAllAppsContainerView;
import com.android.launcher3.allapps.SearchRecyclerView;
import com.android.launcher3.util.BaseLauncherActivityTest;
import com.android.launcher3.ui.AbstractLauncherUiTest;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
@LargeTest
@RunWith(AndroidJUnit4.class)
public class LauncherIntentTest extends BaseLauncherActivityTest<Launcher> {
public class LauncherIntentTest extends AbstractLauncherUiTest<Launcher> {
public final Intent allAppsIntent = new Intent(Intent.ACTION_ALL_APPS);
@Before
public void setUp() {
loadLauncherSync();
}
@Test
public void testAllAppsIntent() {
// Try executing ALL_APPS intent
@@ -51,6 +45,7 @@ public class LauncherIntentTest extends BaseLauncherActivityTest<Launcher> {
// A-Z view with Main adapter should be loaded
assertOnMainAdapterAToZView();
// Try Moving to search view now
moveToSearchView();
// Try executing ALL_APPS intent
@@ -68,14 +63,12 @@ public class LauncherIntentTest extends BaseLauncherActivityTest<Launcher> {
// Search view should be in focus
waitForLauncherCondition("Search view is not in focus.",
launcher -> launcher.getAppsView().getSearchView().hasFocus());
injectKeyEvent(KeyEvent.KEYCODE_C, true);
mLauncher.pressAndHoldKeyCode(KeyEvent.KEYCODE_C, 0);
// Upon key press, search recycler view should be loaded
waitForLauncherCondition("Search view not active.",
launcher -> launcher.getAppsView().getActiveRecyclerView()
instanceof SearchRecyclerView);
injectKeyEvent(KeyEvent.KEYCODE_C, false);
mLauncher.unpressKeyCode(KeyEvent.KEYCODE_C, 0);
}
// Checks if main adapter view is selected, search bar is out of focus and scroller is at start.