Disable app theme crossfade animation.

Pending the resolution of b/172467144, disabling the app theme crossfade animation.

Test: manual
Change-Id: Id18d2022601d7c5d7debb2365d4b65e5fcf6c5a5
This commit is contained in:
Schneider Victor-tulias
2020-11-24 10:26:33 -05:00
parent 64594c803a
commit f6f41535bf

View File

@@ -221,6 +221,8 @@ public class Launcher extends StatefulActivity<LauncherState> implements Launche
static final boolean DEBUG_STRICT_MODE = false;
private static final boolean ENABLE_ACTIVITY_CROSSFADE = false;
private static final int REQUEST_CREATE_SHORTCUT = 1;
private static final int REQUEST_CREATE_APPWIDGET = 5;
@@ -1376,7 +1378,8 @@ public class Launcher extends StatefulActivity<LauncherState> implements Launche
int width = mDragLayer.getWidth();
int height = mDragLayer.getHeight();
if (width <= 0 || height <= 0) {
// TODO: b/172467144 Remove hardcoded ENABLE_ACTIVITY_CROSSFADE.
if (!ENABLE_ACTIVITY_CROSSFADE || width <= 0 || height <= 0) {
return null;
}