summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoe Onorato <joeo@android.com>2009-08-28 09:38:18 -0700
committerJoe Onorato <joeo@android.com>2009-08-28 09:38:18 -0700
commitefabe00e4a51bb792366c459d6acc46832e61fdc (patch)
tree95d991d26a3f9207343c46a23bf51d1fd6f40b44 /src
parentb58cbdc62d8244c33165f7c8600ddbb04cba5586 (diff)
downloadandroid_packages_apps_Trebuchet-efabe00e4a51bb792366c459d6acc46832e61fdc.tar.gz
android_packages_apps_Trebuchet-efabe00e4a51bb792366c459d6acc46832e61fdc.tar.bz2
android_packages_apps_Trebuchet-efabe00e4a51bb792366c459d6acc46832e61fdc.zip
The icons are 3d
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher2/AllAppsView.java2
-rw-r--r--src/com/android/launcher2/LauncherModel.java7
-rw-r--r--src/com/android/launcher2/Utilities.java8
3 files changed, 10 insertions, 7 deletions
diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java
index d9b7b8cf8..cd66b4ffd 100644
--- a/src/com/android/launcher2/AllAppsView.java
+++ b/src/com/android/launcher2/AllAppsView.java
@@ -287,7 +287,7 @@ public class AllAppsView extends RSSurfaceView {
mPFText.bindSampler(mSamplerText, 0);
ProgramStore.Builder bs = new ProgramStore.Builder(mRS, null, null);
- bs.setDepthFunc(ProgramStore.DepthFunc.LESS);
+ bs.setDepthFunc(ProgramStore.DepthFunc.ALWAYS);
bs.setDitherEnable(false);
bs.setDepthMask(true);
bs.setBlendFunc(ProgramStore.BlendSrcFunc.SRC_ALPHA,
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java
index 36b2090e1..90722cf0a 100644
--- a/src/com/android/launcher2/LauncherModel.java
+++ b/src/com/android/launcher2/LauncherModel.java
@@ -296,18 +296,18 @@ public class LauncherModel {
if (mAllAppsList.added.size() > 0) {
added = mAllAppsList.added;
- added = new ArrayList();
+ mAllAppsList.added = new ArrayList();
}
if (mAllAppsList.removed.size() > 0) {
removed = mAllAppsList.removed;
- removed = new ArrayList();
+ mAllAppsList.removed = new ArrayList();
for (ApplicationInfo info: removed) {
AppInfoCache.remove(info.intent.getComponent());
}
}
if (mAllAppsList.modified.size() > 0) {
modified = mAllAppsList.modified;
- modified = new ArrayList();
+ mAllAppsList.modified = new ArrayList();
}
final Callbacks callbacks = mCallbacks.get();
@@ -438,6 +438,7 @@ public class LauncherModel {
while (!done) {
try {
mWaitThread.join();
+ done = true;
} catch (InterruptedException ex) {
}
}
diff --git a/src/com/android/launcher2/Utilities.java b/src/com/android/launcher2/Utilities.java
index 53e42e3cf..0c5dbbdf0 100644
--- a/src/com/android/launcher2/Utilities.java
+++ b/src/com/android/launcher2/Utilities.java
@@ -264,12 +264,14 @@ final class Utilities {
mTextWidth = bubbleWidth - mBubblePadding - mBubblePadding;
Paint rectPaint = mRectPaint = new Paint();
- rectPaint.setColor(0xaa000000);
+ rectPaint.setColor(0xff000000);
rectPaint.setAntiAlias(true);
+ Log.d(Launcher.LOG_TAG, "scale=" + scale + " textSize=" + (13*scale));
+
TextPaint textPaint = mTextPaint = new TextPaint();
- textPaint.setTypeface(Typeface.DEFAULT_BOLD);
- textPaint.setTextSize(20);
+ textPaint.setTypeface(Typeface.DEFAULT);
+ textPaint.setTextSize(13*scale);
textPaint.setColor(0xffffffff);
textPaint.setAntiAlias(true);