mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
Merge "Disable app theme crossfade animation."
This commit is contained in:
committed by
Android (Google) Code Review
commit
f0d79cbac1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user