Show only icons for know applications

This commit is contained in:
M66B 2016-03-09 18:15:02 +01:00
parent 565df22ae4
commit 1945412eb0
1 changed files with 3 additions and 1 deletions

View File

@ -212,7 +212,9 @@ public class AdapterLog extends CursorAdapter {
info = pm.getApplicationInfo(pkg[0], 0);
} catch (PackageManager.NameNotFoundException ignored) {
}
if (info == null || info.icon == 0)
if (info == null && uid != 0)
ivIcon.setImageDrawable(null);
else if (info.icon == 0)
Picasso.with(context).load(android.R.drawable.sym_def_app_icon).into(ivIcon);
else {
Uri uri = Uri.parse("android.resource://" + info.packageName + "/" + info.icon);