summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2011-09-08 15:45:51 -0700
committerWinson Chung <winsonc@google.com>2011-09-08 15:48:58 -0700
commit7ed3774638133ac603e92ca3174ecdd151269cca (patch)
tree77f8ab190cb45c2dd27d4cbc9f7c5c6fb51e6fb4 /src
parente05b381c55a09170e4dfeb999800e8176731b29c (diff)
downloadandroid_packages_apps_Trebuchet-7ed3774638133ac603e92ca3174ecdd151269cca.tar.gz
android_packages_apps_Trebuchet-7ed3774638133ac603e92ca3174ecdd151269cca.tar.bz2
android_packages_apps_Trebuchet-7ed3774638133ac603e92ca3174ecdd151269cca.zip
Bug Fixing
- Setting loader thread priority to default after loading to help rotation time (5264039, more work to be done here potentially) - Fixing regression in missing background gradient for hotseat - Removing the old cupcake gallery item bg, new bg assets coming soon (5160311) - Defering showing the AppsCustomize tab bar until we request layout to help a little with the flashing Change-Id: I8c4981435f684363be951696986b7ab1b71956eb
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher2/AppsCustomizeTabHost.java2
-rw-r--r--src/com/android/launcher2/LauncherModel.java6
2 files changed, 7 insertions, 1 deletions
diff --git a/src/com/android/launcher2/AppsCustomizeTabHost.java b/src/com/android/launcher2/AppsCustomizeTabHost.java
index d6ae1459e..124cf7332 100644
--- a/src/com/android/launcher2/AppsCustomizeTabHost.java
+++ b/src/com/android/launcher2/AppsCustomizeTabHost.java
@@ -138,10 +138,10 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona
// Set the width and show the tab bar (if we have a loading graphic, we can switch
// it off here)
mTabs.getLayoutParams().width = contentWidth;
- mTabsContainer.setAlpha(1f);
post(new Runnable() {
public void run() {
mTabs.requestLayout();
+ mTabsContainer.setAlpha(1f);
}
});
}
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java
index e0b04dacb..080d9976c 100644
--- a/src/com/android/launcher2/LauncherModel.java
+++ b/src/com/android/launcher2/LauncherModel.java
@@ -686,6 +686,7 @@ public class LauncherModel extends BroadcastReceiver {
oldTask.stopLocked();
}
mLoaderTask = new LoaderTask(context, isLaunching);
+ sWorkerThread.setPriority(Thread.NORM_PRIORITY);
sWorker.post(mLoaderTask);
}
}
@@ -825,6 +826,11 @@ public class LauncherModel extends BroadcastReceiver {
if (DEBUG_LOADERS) Log.d(TAG, "step 2: special: loading workspace");
loadAndBindWorkspace();
}
+
+ // Restore the default thread priority after we are done loading items
+ synchronized (mLock) {
+ android.os.Process.setThreadPriority(Process.THREAD_PRIORITY_DEFAULT);
+ }
}