Rename menu

This commit is contained in:
M66B 2016-02-03 07:04:00 +01:00
parent a3f9464554
commit b928510207
3 changed files with 5 additions and 4 deletions

View File

@ -543,9 +543,9 @@ public class RuleAdapter extends RecyclerView.Adapter<RuleAdapter.ViewHolder> im
dh.setAccess(id, rule.info.applicationInfo.uid, 1);
SinkholeService.reload(null, "block host", context);
return true;
case R.id.menu_clear:
case R.id.menu_reset:
dh.setAccess(id, rule.info.applicationInfo.uid, -1);
SinkholeService.reload(null, "clear host", context);
SinkholeService.reload(null, "reset host", context);
return true;
}
return false;

View File

@ -11,6 +11,6 @@
android:id="@+id/menu_block"
android:title="@string/title_block" />
<item
android:id="@+id/menu_clear"
android:title="@string/menu_clear" />
android:id="@+id/menu_reset"
android:title="@string/menu_reset" />
</menu>

View File

@ -27,6 +27,7 @@ however it is impossible to guarantee NetGuard will work correctly on every devi
<string name="menu_pcap_enabled">PCAP enabled</string>
<string name="menu_pcap_export">PCAP export</string>
<string name="menu_clear">Clear</string>
<string name="menu_reset">Reset</string>
<string name="setting_defaults">Defaults</string>
<string name="setting_whitelist_wifi">Block Wi-Fi</string>