Only use hardware layers for transitions to all apps/customize in portrait
This commit is contained in:
1 parent
8bb771ecb8
commit
bfadaad352
1 file changed
+4
-1
@@ -2690,7 +2690,10 @@ public final class Launcher extends Activity
|
|||||||
}
|
}
|
||||||
|
|
||||||
scaleAnim.setInterpolator(new Workspace.ZoomOutInterpolator());
|
scaleAnim.setInterpolator(new Workspace.ZoomOutInterpolator());
|
||||||
toView.setLayerType(View.LAYER_TYPE_HARDWARE, null);
|
// Only use hardware layers in portrait mode, they don't give any gains in landscape
|
||||||
|
if (mWorkspace.getWidth() < mWorkspace.getHeight()) {
|
||||||
|
toView.setLayerType(View.LAYER_TYPE_HARDWARE, null);
|
||||||
|
}
|
||||||
scaleAnim.addListener(new AnimatorListenerAdapter() {
|
scaleAnim.addListener(new AnimatorListenerAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void onAnimationStart(Animator animation) {
|
public void onAnimationStart(Animator animation) {
|
||||||
|
|||||||
Reference in new issue
Block a user