aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* NotSupported: Better sorry textJason A. Donenfeld2017-11-272-6/+27
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* SettingsActivity: directly pass through bundleJason A. Donenfeld2017-11-271-4/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigDetailFragment: wire up toggle switchJason A. Donenfeld2017-11-271-7/+7
| | | | | | Finally no gross colors. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* NotSupported: check if the module existsJason A. Donenfeld2017-11-275-12/+86
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Settings: show quick tile config if no primary is definedJason A. Donenfeld2017-11-274-3/+17
| | | | | | This seems like a horrific set of hacks. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigImporter: give updates when something goes wrongJason A. Donenfeld2017-11-271-5/+20
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* QuickTileService: show app if no profiles existJason A. Donenfeld2017-11-273-4/+8
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Config: make parsing stricterJason A. Donenfeld2017-11-264-6/+19
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigImporter: Get filename from content resolverSamuel Holland2017-11-251-3/+26
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigList: A better toggle switchSamuel Holland2017-11-253-20/+43
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* widgets: Import ToggleSwitch from the AOSP Settings appSamuel Holland2017-11-251-0/+63
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigList: Poor man's switchSamuel Holland2017-11-242-8/+6
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* BindingAdapters: Sort existing adaptersSamuel Holland2017-11-241-5/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* VpnService: Move it to a backends packageSamuel Holland2017-11-2412-14/+26
| | | | | | | | | | It should be split into two pieces: configuration file management (loading/saving/renaming/deleting) and calling into wg-quick via RootShell. The configuration file management part should then go back into the main package. This is in preparation for adding additional backends based on wg(8) and wireguard-go. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigActivity: Add import menu itemSamuel Holland2017-11-084-0/+33
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* VpnService: Add helper for importing configsSamuel Holland2017-11-081-0/+50
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Bindings: Merge bugfixes and updatesSamuel Holland2017-11-086-37/+60
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Bindings: Move to a separate packageSamuel Holland2017-11-079-8/+20
| | | | | | | | These are really app-independent reusable classes. Moving them to a separate package helps avoid polluting the main app package, and makes them easier to upgrade. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigListFragment: Prevent config names from wrappingSamuel Holland2017-08-241-0/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigActivity: Only use split layout on tablet-sized screensSamuel Holland2017-08-241-0/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Centralize/unify validation of configurationsSamuel Holland2017-08-243-16/+11
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigActivity: Invert isSplitLayout→isSingleLayout for claritySamuel Holland2017-08-241-12/+12
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ObservableSortedMap: Document interfaceSamuel Holland2017-08-241-0/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Remove state debugging messagesSamuel Holland2017-08-243-13/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigEditFragment: Copy public key on clickSamuel Holland2017-08-243-0/+19
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigEditFragment: Mark the persistent keepalive as optionalSamuel Holland2017-08-241-0/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigEditFragment: Add a field for the optional pre-shared keySamuel Holland2017-08-242-1/+20
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Peer: Add a field for the optional pre-shared keySamuel Holland2017-08-242-0/+21
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigActivity: Fix condition for inserting back stack entriesSamuel Holland2017-08-241-1/+2
| | | | | | | Fixes saved editor state on rotation (removing and recreating the editor discarded changes). Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigActivity: Save editor state across fragment instancesSamuel Holland2017-08-241-1/+18
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* AddActivity: Update for ConfigEditFragment changesSamuel Holland2017-08-241-4/+13
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigEditFragment: Save and restore editor state properlySamuel Holland2017-08-241-6/+48
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigActivity: Avoid unnecessary executePendingTransactionsSamuel Holland2017-08-241-3/+1
| | | | | | Nothing later tries to find the list using findFragmentById(). Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigListFragment: Avoid unnecessary findViewByIdSamuel Holland2017-08-241-3/+2
| | | | | | The generated ViewDataBinding has fields for each view with an id. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigActivity: Log state transitionsSamuel Holland2017-08-231-0/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Config/Interface/Peer: Make ParcelableSamuel Holland2017-08-233-9/+123
| | | | | | This allows saving the editor state across restarts. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Config/Interface/Peer: Fix some missed change notificationsSamuel Holland2017-08-233-15/+18
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* VpnService: Fix some edge cases in ConfigUpdaterSamuel Holland2017-08-231-18/+19
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Config/Interface: Allow copyFrom() to work on nullSamuel Holland2017-08-232-11/+28
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* BaseConfigActivity: Remember editing stateSamuel Holland2017-08-232-12/+39
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* manifest: ConfigActivity is parent to AddActivitySamuel Holland2017-08-231-1/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Finish first pass of config editor fieldsSamuel Holland2017-08-229-173/+468
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* QuickTileService: Update the tile once on service initSamuel Holland2017-08-221-0/+1
| | | | | | This makes the tile show the correct info when it is first added. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Add an adapter for binding an ObservableList to a LinearLayoutSamuel Holland2017-08-225-14/+169
| | | | | | EditTexts do not work in ListViews. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Use data binding to provide EditText input filtersSamuel Holland2017-08-226-22/+71
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigAddActivity: Rename to AddActivitySamuel Holland2017-08-224-5/+7
| | | | | | Not everything needs to start with Config Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigActivity: Fix fragment state when leaving/entering appSamuel Holland2017-08-214-109/+162
| | | | | | Do this by making the fragment transition functions idempotent. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Peer: Associate with a ConfigSamuel Holland2017-08-192-4/+29
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Minor cleanupsSamuel Holland2017-08-192-10/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ObservableAdapters: notify on map/list being setSamuel Holland2017-08-183-3/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>