aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/java/com/wireguard/android/ProfileActivity.java (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-08-13Major renaming and refactoring in activity and serviceSamuel Holland1-69/+0
Apparently "configuration" is the proper term, not "profile". Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-10ProfileActivity: Do menus correctlySamuel Holland1-8/+0
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-09Settings: Add empty activitySamuel Holland1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-09ProfileEdit: Add empty activity/fragmentSamuel Holland1-0/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-09ProfileActivity: Do not use onClick for menusSamuel Holland1-6/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-09ProfileActivity: Also remember editing stateSamuel Holland1-3/+19
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-09ProfileActivity: Replace fragments instead of hidingSamuel Holland1-1/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-09ProfileActivity: Extract base class for fixing fragmentsSamuel Holland1-54/+8
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-08ProfileActivity: Refactor into clean layers of functionalitySamuel Holland1-62/+65
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-07ProfileActivity: Add two-pane master-detail layoutSamuel Holland1-0/+4
This is designed for tablets, but for testing purposes, it is currently enabled for all devices in landscape orientation. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-07ProfileActivity: Make local variables finalSamuel Holland1-2/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-07ProfileList: Load fragment programmaticallySamuel Holland1-0/+6
This is necessary to replace it with the profile detail fragment later. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-04ProfileList: Convert to a fragmentSamuel Holland1-24/+33
This is required for a future two-fragment tablet layout, and simplifies the code a bit since the profile detail (view/edit) will be implemented as fragments anyway. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-01ProfileList: Remove "Add" menu action, to be replaced by a FABSamuel Holland1-4/+0
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-07-29ProfileList: Add a simple menuSamuel Holland1-0/+16
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-07-31ProfileList: Toggle connection state on clickSamuel Holland1-0/+18
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-07-30ProfileService: Create it and move profile loadingSamuel Holland1-41/+34
The long-running service is needed for keeping track of which profiles are enabled, for showing notifications, and for the tile service to use. Since it has to know which profiles exist anyway, moving the main ObservableList there avoids some code duplication. It ensures the list is only loaded once, so it cannot get out of sync. It also makes the ProfileList activity load faster, because it doesn't have to wait for file I/O; and it provides a canonical place for storing the Profile objects so they are accessible everywhere, instead of having to look them up by name. This does present some challenges with leaking activities, because all listeners must be removed from the profiles list (and its contents) when an activity is stopped. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-07-29ProfileList: Add minimal activitySamuel Holland1-0/+64
For now, it simply reads the files in the app's data directory with file names ending in ".conf" and displays them in a list. This includes the generic list data binding setup for future use. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>