mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Changing downloads tab to my apps and making most recent first. (3377455)
Change-Id: I75ae46ad601457ecfc9555aff7f7ff5284440317
This commit is contained in:
@@ -52,6 +52,11 @@ class ApplicationInfo extends ItemInfo {
|
||||
*/
|
||||
Bitmap iconBitmap;
|
||||
|
||||
/**
|
||||
* The time at which the app was first installed.
|
||||
*/
|
||||
long firstInstallTime;
|
||||
|
||||
ComponentName componentName;
|
||||
|
||||
static final int APP_FLAG = 1;
|
||||
@@ -82,6 +87,7 @@ class ApplicationInfo extends ItemInfo {
|
||||
if ((appFlags & android.content.pm.ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0) {
|
||||
flags |= DOWNLOADED_FLAG;
|
||||
}
|
||||
firstInstallTime = pm.getPackageInfo(packageName, 0).firstInstallTime;
|
||||
// TODO: Figure out how to determine what is a game
|
||||
|
||||
// If it's not a game, it's an app
|
||||
@@ -101,6 +107,7 @@ class ApplicationInfo extends ItemInfo {
|
||||
title = info.title.toString();
|
||||
intent = new Intent(info.intent);
|
||||
flags = info.flags;
|
||||
firstInstallTime = info.firstInstallTime;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -128,7 +135,8 @@ class ApplicationInfo extends ItemInfo {
|
||||
Log.d(tag, label + " size=" + list.size());
|
||||
for (ApplicationInfo info: list) {
|
||||
Log.d(tag, " title=\"" + info.title + "\" titleBitmap=" + info.titleBitmap
|
||||
+ " iconBitmap=" + info.iconBitmap);
|
||||
+ " iconBitmap=" + info.iconBitmap + " firstInstallTime="
|
||||
+ info.firstInstallTime);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user