mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 01:16:49 +00:00
Merge "Improve workspace's scrolling performance." into froyo
This commit is contained in:
@@ -961,7 +961,23 @@ public class AllApps3D extends RSSurfaceView
|
||||
public void run() {
|
||||
sRollo.mScrollPos = ((float)mData[0]) / (1 << 16);
|
||||
mVelocity = ((float)mData[1]) / (1 << 16);
|
||||
|
||||
boolean lastVisible = isVisible();
|
||||
mZoom = ((float)mData[2]) / (1 << 16);
|
||||
|
||||
final boolean visible = isVisible();
|
||||
if (visible != lastVisible) {
|
||||
post(new Runnable() {
|
||||
public void run() {
|
||||
if (visible) {
|
||||
showSurface();
|
||||
} else {
|
||||
hideSurface();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
sZoomDirty = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user