From 5612e4321e637a4b6278dc6abff215812d8dc998 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Mon, 16 Nov 2009 14:18:07 -0800 Subject: [PATCH 1/2] Fix duplicated text when returning home from an app that hid the status bar and launcher2 was killed. --- src/com/android/launcher2/AllAppsView.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java index baa7174895..319c1231ab 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); From 3ff6770352b3e67b9bb6be5ee7a5d9bf42476d6b Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Mon, 16 Nov 2009 16:44:51 -0800 Subject: [PATCH 2/2] Import revised translations. DO NOT MERGE --- res/values-zh-rCN/strings.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml index ba3cc8a5b7..9e78e7e8f2 100644 --- a/res/values-zh-rCN/strings.xml +++ b/res/values-zh-rCN/strings.xml @@ -15,8 +15,7 @@ --> - - + "启动程序" "Android 核心应用程序" "文件夹" "选择壁纸来源"