mirror of https://github.com/M66B/NetGuard.git
Show only icons for know applications
This commit is contained in:
parent
565df22ae4
commit
1945412eb0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue