mirror of
https://github.com/M66B/NetGuard.git
synced 2025-01-01 12:54:07 +00:00
Skip name/organization for self
This commit is contained in:
parent
bdb4894826
commit
f47c44248f
1 changed files with 4 additions and 2 deletions
|
@ -225,6 +225,8 @@ public class AdapterLog extends CursorAdapter {
|
|||
Picasso.with(context).load(uri).resize(iconSize, iconSize).into(ivIcon);
|
||||
}
|
||||
|
||||
boolean we = (android.os.Process.myUid() == uid);
|
||||
|
||||
// https://android.googlesource.com/platform/system/core/+/master/include/private/android_filesystem_config.h
|
||||
uid = uid % 100000; // strip off user ID
|
||||
if (uid == -1)
|
||||
|
@ -240,7 +242,7 @@ public class AdapterLog extends CursorAdapter {
|
|||
tvSAddr.setText(getKnownAddress(saddr));
|
||||
|
||||
// Show destination address
|
||||
if (resolve && !isKnownAddress(daddr))
|
||||
if (!we && resolve && !isKnownAddress(daddr))
|
||||
if (dname == null) {
|
||||
tvDaddr.setText(daddr);
|
||||
new AsyncTask<String, Object, String>() {
|
||||
|
@ -271,7 +273,7 @@ public class AdapterLog extends CursorAdapter {
|
|||
|
||||
// Show organization
|
||||
tvOrganization.setVisibility(View.GONE);
|
||||
if (organization) {
|
||||
if (!we && organization) {
|
||||
if (!isKnownAddress(daddr))
|
||||
new AsyncTask<String, Object, String>() {
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue