diff options
author | Jason Sams <rjsams@android.com> | 2009-11-16 14:18:07 -0800 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2009-11-16 14:18:07 -0800 |
commit | 5612e4321e637a4b6278dc6abff215812d8dc998 (patch) | |
tree | c2da9300b61ef756e1c71049da11535ae04fd51a /src/com/android/launcher2/AllAppsView.java | |
parent | 5f9978e15a316d7618ca81a07691e0e46527783d (diff) | |
download | android_packages_apps_Trebuchet-5612e4321e637a4b6278dc6abff215812d8dc998.tar.gz android_packages_apps_Trebuchet-5612e4321e637a4b6278dc6abff215812d8dc998.tar.bz2 android_packages_apps_Trebuchet-5612e4321e637a4b6278dc6abff215812d8dc998.zip |
Fix duplicated text when returning home from an app that hid the status bar and launcher2 was killed.
Diffstat (limited to 'src/com/android/launcher2/AllAppsView.java')
-rw-r--r-- | src/com/android/launcher2/AllAppsView.java | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java index baa717489..319c1231a 100644 --- a/src/com/android/launcher2/AllAppsView.java +++ b/src/com/android/launcher2/AllAppsView.java @@ -214,6 +214,7 @@ public class AllAppsView extends RSSurfaceView mRollo.mHasSurface = true; } mRollo.dirtyCheck(); + mRollo.resize(w, h); mRS.mMessageCallback = mMessageProc = new AAMessage(); @@ -783,6 +784,7 @@ public class AllAppsView extends RSSurfaceView private ProgramVertex mPVOrtho; private SimpleMesh mMesh; private SimpleMesh mMesh2; + private ProgramVertex.MatrixAllocation mPVA; private Allocation mHomeButtonNormal; private Allocation mHomeButtonFocused; @@ -914,15 +916,21 @@ public class AllAppsView extends RSSurfaceView mMesh2.setName("SMMesh"); } + void resize(int w, int h) { + mPVA.setupProjectionNormalized(w, h); + mWidth = w; + mHeight = h; + } + private void initProgramVertex() { - ProgramVertex.MatrixAllocation pva = new ProgramVertex.MatrixAllocation(mRS); - pva.setupProjectionNormalized(mWidth, mHeight); + mPVA = new ProgramVertex.MatrixAllocation(mRS); + resize(mWidth, mHeight); ProgramVertex.Builder pvb = new ProgramVertex.Builder(mRS, null, null); pvb.setTextureMatrixEnable(true); mPV = pvb.create(); mPV.setName("PV"); - mPV.bindAllocation(pva); + mPV.bindAllocation(mPVA); //pva = new ProgramVertex.MatrixAllocation(mRS); //pva.setupOrthoWindow(mWidth, mHeight); |