summaryrefslogtreecommitdiffhomepage
path: root/app/src
AgeCommit message (Collapse)Author
2017-08-24ConfigEditFragment: Mark the persistent keepalive as optionalSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-24ConfigEditFragment: Add a field for the optional pre-shared keySamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-24Peer: Add a field for the optional pre-shared keySamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-24ConfigActivity: Fix condition for inserting back stack entriesSamuel Holland
Fixes saved editor state on rotation (removing and recreating the editor discarded changes). Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-24ConfigActivity: Save editor state across fragment instancesSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-24AddActivity: Update for ConfigEditFragment changesSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-24ConfigEditFragment: Save and restore editor state properlySamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-24ConfigActivity: Avoid unnecessary executePendingTransactionsSamuel Holland
Nothing later tries to find the list using findFragmentById(). Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-24ConfigListFragment: Avoid unnecessary findViewByIdSamuel Holland
The generated ViewDataBinding has fields for each view with an id. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-23ConfigActivity: Log state transitionsSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-23Config/Interface/Peer: Make ParcelableSamuel Holland
This allows saving the editor state across restarts. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-23Config/Interface/Peer: Fix some missed change notificationsSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-23VpnService: Fix some edge cases in ConfigUpdaterSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-23Config/Interface: Allow copyFrom() to work on nullSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-23BaseConfigActivity: Remember editing stateSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-23manifest: ConfigActivity is parent to AddActivitySamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-22Finish first pass of config editor fieldsSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-22QuickTileService: Update the tile once on service initSamuel Holland
This makes the tile show the correct info when it is first added. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-22Add an adapter for binding an ObservableList to a LinearLayoutSamuel Holland
EditTexts do not work in ListViews. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-22Use data binding to provide EditText input filtersSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-22ConfigAddActivity: Rename to AddActivitySamuel Holland
Not everything needs to start with Config Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-21ConfigActivity: Fix fragment state when leaving/entering appSamuel Holland
Do this by making the fragment transition functions idempotent. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-19Peer: Associate with a ConfigSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-19Minor cleanupsSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-18ObservableAdapters: notify on map/list being setSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-17MapAdapter: Stable IDs are based on value, not keySamuel Holland
This fixes list selection to survive renaming configurations. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-17ConfigListFragment: Restore the non-FAB add menuSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-17QuickTileService: Implement and update from VpnServiceSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-17BaseConfigActivity: Make use of inner class's thisSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-17VpnService: Use a string to remember the primary configSamuel Holland
This allows simplifies the code a bit. Also, a few other minor changes. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-17ConfigEditFragment: Add extremely basic validationSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-17Interface: Rework private key handlingSamuel Holland
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>
2017-08-17VpnService: Remove extraneous call to super()Samuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-17ObservableArrayMapAdapter: RemoveSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-17Convert to using the ObservableTreeMap and its adapterSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-17ObservableMapAdapter: Based on an observable TreeMapSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-16preferences: Control restoring enabled configsSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-16VpnService: Remember and optionally restore enabled configsSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-16SettingsActivity: Implement primary config settingSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-16ConfigListPreference: ListPreference for configsSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-16ConfigList: Denote the primary config with bold textSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-16BindingAdapters: Create an adapter for textStyleSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-16VpnService: Remember and maintain the primary configSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-16Config: add an isPrimary propertySamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-16Detail/Edit/ListFragment: Update the layoutsSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-16ConfigActivity: Inline PlaceholderFragment into the layoutSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-16ConfigActivity: Make the two-pane layout more readableSamuel Holland
Highlight the selected configuration, and add a border between the two panes. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-16Config: Make it ComparableSamuel Holland
This will be used for future sorting. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-16ConfigActivity: Adjust when the back arrow is shownSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-16ConfigListFragment: Implement config selection and removalSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>