mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 01:16:49 +00:00
Retiring some feature flags
Change-Id: I80a00ecaec0785ce2ba6a5f14a54c8a76f555d43
This commit is contained in:
@@ -43,13 +43,11 @@ import com.android.launcher3.MainThreadExecutor;
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.compat.AppWidgetManagerCompat;
|
||||
import com.android.launcher3.compat.LauncherAppsCompat;
|
||||
import com.android.launcher3.config.FeatureFlags;
|
||||
import com.android.launcher3.testcomponent.AppWidgetNoConfig;
|
||||
import com.android.launcher3.testcomponent.AppWidgetWithConfig;
|
||||
|
||||
import org.junit.Before;
|
||||
|
||||
import java.util.Locale;
|
||||
import java.util.concurrent.Callable;
|
||||
import java.util.concurrent.CountDownLatch;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
@@ -101,19 +99,12 @@ public abstract class AbstractLauncherUiTest {
|
||||
*/
|
||||
protected UiObject2 openAllApps() {
|
||||
mDevice.waitForIdle();
|
||||
if (FeatureFlags.NO_ALL_APPS_ICON) {
|
||||
UiObject2 hotseat = mDevice.wait(
|
||||
Until.findObject(getSelectorForId(R.id.hotseat)), 2500);
|
||||
Point start = hotseat.getVisibleCenter();
|
||||
int endY = (int) (mDevice.getDisplayHeight() * 0.1f);
|
||||
// 100 px/step
|
||||
mDevice.swipe(start.x, start.y, start.x, endY, (start.y - endY) / 100);
|
||||
|
||||
} else {
|
||||
mDevice.wait(Until.findObject(
|
||||
By.desc(mTargetContext.getString(R.string.all_apps_button_label))),
|
||||
DEFAULT_UI_TIMEOUT).click();
|
||||
}
|
||||
UiObject2 hotseat = mDevice.wait(
|
||||
Until.findObject(getSelectorForId(R.id.hotseat)), 2500);
|
||||
Point start = hotseat.getVisibleCenter();
|
||||
int endY = (int) (mDevice.getDisplayHeight() * 0.1f);
|
||||
// 100 px/step
|
||||
mDevice.swipe(start.x, start.y, start.x, endY, (start.y - endY) / 100);
|
||||
return findViewById(R.id.apps_list_view);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user