mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-07-03 21:21:12 +08:00
Fix root domain rule label
This commit is contained in:
parent
c7499b4b2f
commit
6b3fb1c2d0
@ -320,9 +320,8 @@ public class ConnectionsFragment extends Fragment implements ConnectionsListener
|
||||
String rootDomain = Utils.getRootDomain(conn.info);
|
||||
|
||||
if(!rootDomain.equals(conn.info)) {
|
||||
String val = "*" + rootDomain;
|
||||
item = menu.findItem(R.id.exclude_root_domain);
|
||||
item.setTitle(ConnectionsMatcher.getLabel(ctx, ItemType.ROOT_DOMAIN, val));
|
||||
item.setTitle(ConnectionsMatcher.getLabel(ctx, ItemType.ROOT_DOMAIN, rootDomain));
|
||||
item.setVisible(true);
|
||||
}
|
||||
}
|
||||
|
||||
@ -102,8 +102,8 @@ public class ConnectionsMatcher {
|
||||
switch(tp) {
|
||||
case APP: resid = R.string.app_val; break;
|
||||
case IP: resid = R.string.ip_address_val; break;
|
||||
case HOST:
|
||||
case ROOT_DOMAIN: resid = R.string.host_val; break;
|
||||
case ROOT_DOMAIN: value = "*" + value; // fallthrough
|
||||
case HOST: resid = R.string.host_val; break;
|
||||
case PROTOCOL: resid = R.string.protocol_val; break;
|
||||
default:
|
||||
return "";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user