Changing downloads tab to my apps and making most recent first. (3377455)

Change-Id: I75ae46ad601457ecfc9555aff7f7ff5284440317
This commit is contained in:
Winson Chung
2011-01-21 15:38:02 -08:00
parent 7bccb42f88
commit 78403feedc
4 changed files with 22 additions and 5 deletions
@@ -1747,6 +1747,14 @@ public class LauncherModel extends BroadcastReceiver {
return sCollator.compare(a.title.toString(), b.title.toString());
}
};
public static final Comparator<ApplicationInfo> APP_INSTALL_TIME_COMPARATOR
= new Comparator<ApplicationInfo>() {
public final int compare(ApplicationInfo a, ApplicationInfo b) {
if (a.firstInstallTime < b.firstInstallTime) return 1;
if (a.firstInstallTime > b.firstInstallTime) return -1;
return 0;
}
};
public void dumpState() {
Log.d(TAG, "mCallbacks=" + mCallbacks);