Implement simple app database which maintains app information at runtime

This helps us to collect information about an app (title, ..) we can
reuse for certain other things like window construction.
This commit is contained in:
Simon Fels 2017-03-16 17:03:50 +01:00
commit 3d0d453861
14 changed files with 180 additions and 53 deletions

View file

@ -116,7 +116,12 @@ public final class PlatformService {
if (icon == null)
continue;
data.writeString(appInfo.name);
String name = appInfo.name;
CharSequence label = appInfo.loadLabel(mPm);
if (label != null)
name = label.toString();
data.writeString(name);
data.writeString(appInfo.packageName);
data.writeString(launchIntent.getAction());