* commit '0d06152d4026e933d8308002e1d53ca4eba6cad2': Remove unnecessary allocations during draw Bug #7327799
This commit is contained in:
@@ -254,6 +254,13 @@ public class Workspace extends SmoothPagedView
|
|||||||
private float[] mNewRotationYs;
|
private float[] mNewRotationYs;
|
||||||
private float mTransitionProgress;
|
private float mTransitionProgress;
|
||||||
|
|
||||||
|
private final Runnable mBindPages = new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
mLauncher.getModel().bindRemainingSynchronousPages();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to inflate the Workspace from XML.
|
* Used to inflate the Workspace from XML.
|
||||||
*
|
*
|
||||||
@@ -1292,12 +1299,7 @@ public class Workspace extends SmoothPagedView
|
|||||||
super.onDraw(canvas);
|
super.onDraw(canvas);
|
||||||
|
|
||||||
// Call back to LauncherModel to finish binding after the first draw
|
// Call back to LauncherModel to finish binding after the first draw
|
||||||
post(new Runnable() {
|
post(mBindPages);
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
mLauncher.getModel().bindRemainingSynchronousPages();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean isDrawingBackgroundGradient() {
|
boolean isDrawingBackgroundGradient() {
|
||||||
|
|||||||
Reference in New Issue
Block a user