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:
parent
3f34c059ea
commit
3d0d453861
14 changed files with 180 additions and 53 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue