aboutsummaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* MapAdapter: Stable IDs are based on value, not keySamuel Holland2017-08-171-1/+1
| | | | | | This fixes list selection to survive renaming configurations. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigListFragment: Restore the non-FAB add menuSamuel Holland2017-08-174-0/+25
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* QuickTileService: Implement and update from VpnServiceSamuel Holland2017-08-174-1/+117
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* BaseConfigActivity: Make use of inner class's thisSamuel Holland2017-08-171-3/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* VpnService: Use a string to remember the primary configSamuel Holland2017-08-171-23/+29
| | | | | | This allows simplifies the code a bit. Also, a few other minor changes. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigEditFragment: Add extremely basic validationSamuel Holland2017-08-172-1/+13
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Interface: Rework private key handlingSamuel Holland2017-08-171-11/+17
| | | | | | | This works much better with a data-bound UI -- no confusing erasing of the text box, and no crashes, either! Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* VpnService: Remove extraneous call to super()Samuel Holland2017-08-171-1/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ObservableArrayMapAdapter: RemoveSamuel Holland2017-08-172-120/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Convert to using the ObservableTreeMap and its adapterSamuel Holland2017-08-174-4/+34
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ObservableMapAdapter: Based on an observable TreeMapSamuel Holland2017-08-173-0/+190
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* preferences: Control restoring enabled configsSamuel Holland2017-08-162-0/+7
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* VpnService: Remember and optionally restore enabled configsSamuel Holland2017-08-161-0/+20
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* SettingsActivity: Implement primary config settingSamuel Holland2017-08-163-0/+26
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigListPreference: ListPreference for configsSamuel Holland2017-08-161-0/+35
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigList: Denote the primary config with bold textSamuel Holland2017-08-161-1/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* BindingAdapters: Create an adapter for textStyleSamuel Holland2017-08-161-0/+8
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* VpnService: Remember and maintain the primary configSamuel Holland2017-08-161-1/+36
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Config: add an isPrimary propertySamuel Holland2017-08-161-0/+11
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Detail/Edit/ListFragment: Update the layoutsSamuel Holland2017-08-164-27/+22
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigActivity: Inline PlaceholderFragment into the layoutSamuel Holland2017-08-164-54/+35
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigActivity: Make the two-pane layout more readableSamuel Holland2017-08-168-2/+24
| | | | | | | Highlight the selected configuration, and add a border between the two panes. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Config: Make it ComparableSamuel Holland2017-08-161-1/+8
| | | | | | This will be used for future sorting. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigActivity: Adjust when the back arrow is shownSamuel Holland2017-08-161-9/+9
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigListFragment: Implement config selection and removalSamuel Holland2017-08-164-10/+120
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Config: Rename function to make databinding happySamuel Holland2017-08-162-5/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* VpnService: Tweaks for ConfigUpdater to fix addingSamuel Holland2017-08-161-4/+9
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigDetailFragment: Move function to be in alphabetical orderSamuel Holland2017-08-161-6/+9
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigActivity: Fix restoring layout on resumeSamuel Holland2017-08-161-5/+6
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigAddActivity: Add an standalone config-creating activitySamuel Holland2017-08-155-2/+57
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* BaseConfigActivity: Set initial config when service availableSamuel Holland2017-08-152-10/+11
| | | | | | | This was accidentally missed earlier when adding the optimization to omit binding the service when unnecessary. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* KeyInputFilter: Extract to its own classSamuel Holland2017-08-152-36/+43
| | | | | | It will be reused for entering public keys of peers. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigActivity: Show the current config in the titleSamuel Holland2017-08-151-0/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* BaseConfigActivity: Move menu handling to ConfigActivitySamuel Holland2017-08-152-7/+7
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigActivity: Show back arrow in single layout action barSamuel Holland2017-08-141-0/+7
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ListFragment: Don't assume the ListView is the rootSamuel Holland2017-08-141-1/+1
| | | | | | | It may share the layout with a FAB, and that requires a parent ViewGroup. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigActivity: Fragments are hard; this un-breaks animationsSamuel Holland2017-08-142-79/+88
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigActivity: Enable animations on fragment transitionsSamuel Holland2017-08-141-0/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* EditFragment: Input filters for config name and private keySamuel Holland2017-08-141-0/+50
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigActivity: Avoid crash when started while lockedSamuel Holland2017-08-141-3/+12
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Major renaming and refactoring in activity and serviceSamuel Holland2017-08-1349-1218/+1193
| | | | | | Apparently "configuration" is the proper term, not "profile". Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>