aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/java/com/wireguard/config/IPCidr.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* global: Clean up JavaSamuel Holland2018-04-301-3/+3
| | | | | | Address Java and Android lints. Signed-off-by: Samuel Holland <samuel@sholland.org>
* TunnelEditorFragment: rewrite and simplifyJason A. Donenfeld2018-04-301-40/+2
| | | | | This should remove some null pointer dereferences and overall make the thing more robust.
* config: Minor cleanupHarsh Shandilya2018-04-281-6/+7
| | | | | | | | | - Stop implicitly assuming locales in String.format - Cleanup method visibilities - Improve uses of Integer methods - Remove unused getToken method Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* Use validation instead of two-way bindingJason A. Donenfeld2018-04-281-1/+0
| | | | | | | | | | | | This is insane, but it appears to be working. We essentially store things in a separate class for editing, and then commit it back at a given time. This business with onViewStateRestored in both TunnelEditorFragment and in TunnelDetailFragment is buggy and likely wrong. In general TunnelEditorFragment should probably be rewritten. The relationship with the changed name is not clear.
* Do not do DNS lookups for IPsJason A. Donenfeld2018-04-271-5/+1
| | | | | This involves reflection, which is a bummer, but it's better than doing unnecessary DNS lookups.
* Throw IllegalArgumentExceptions when arguments are badJason A. Donenfeld2018-04-271-3/+7
| | | | | | | This will make the two way data binding crash more, but it will improve the robustness of the config file parser, which deals with exceptions gracefully, and when we move to one way data binding, it will help with that too.
* More javaficationJason A. Donenfeld2018-04-181-0/+79