aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Support always-on-vpnJason A. Donenfeld2018-05-275-9/+55
|
* EditorFragment: show toast on creation tooJason A. Donenfeld2018-05-271-0/+1
|
* libwg-go: try no stickiness and no roamingJason A. Donenfeld2018-05-261-6/+0
|
* libwg-go: reenable sticky sockets, just slightly less stickyJason A. Donenfeld2018-05-241-0/+6
|
* ExceptionLoggers: never have a null messageJason A. Donenfeld2018-05-166-11/+20
|
* android: Directly use views for snackbarsHarsh Shandilya2018-05-162-15/+8
| | | | | | There should be no need to deference an extra variable. Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* theme: revert to old color schemeJason A. Donenfeld2018-05-093-17/+1
| | | | Noble effort, but ultimately ugly.
* global: Cleanup line lengths and misc lint warningsHarsh Shandilya2018-05-0910-71/+85
| | | | | | | | | I know we decided to ditch the idea of shutting up "Exception thrown with empty param" warnings but this pesters me too much and we can instead just treat this as a weird future proofing thing if and when we end up needing the exception messages. Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* MainActivity: Nip out as early as possible when moving to same fragmentHarsh Shandilya2018-05-091-3/+3
| | | | | | Save the useless logging and fragment manager object creation. Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* mipmap: Fix formatting of launcher icon XMLSamuel Holland2018-05-052-6/+6
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* styles: Fixup CAB background colorHarsh Shandilya2018-05-051-0/+1
| | | | | | | Long pressing any list item entry would cause the action bar to use the dark color from the parent theme -- fix that. Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* drawables: Introduce material iconographyHarsh Shandilya2018-05-051-2/+2
| | | | Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* styles: Propagate WireGuard blue in UIHarsh Shandilya2018-05-052-0/+6
| | | | Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* styles: Propagate WireGuard red in UIHarsh Shandilya2018-05-053-1/+10
| | | | Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* TunnelEditor: Add toast messages to success eventsHarsh Shandilya2018-05-051-0/+2
| | | | | | | Letting the user know that the operation went successfully via visual cues is a nice UX touch. Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* TunnelEditor: Remove unused parameterHarsh Shandilya2018-05-031-2/+2
| | | | Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* ui: Use a proper CardView based layoutHarsh Shandilya2018-05-034-417/+442
| | | | Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* config: loosen parser to match realityJason A. Donenfeld2018-05-032-5/+9
| | | | Mid-line comments, mixed case.
* global: fix up copyrightsJason A. Donenfeld2018-05-0347-33/+49
|
* Keypair: Minimize the scope of warning suppressionSamuel Holland2018-05-021-1/+1
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* KeyEncoding: Address lints/warnings and match line lengthSamuel Holland2018-05-021-9/+12
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* global: Add or update copyright headers in Java codeSamuel Holland2018-05-0245-1/+224
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* global: Some more lint cleanupHarsh Shandilya2018-05-022-31/+28
| | | | Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* drawable: add adaptive iconJason A. Donenfeld2018-05-024-0/+49
|
* ZipExporterPreference: account for directory already existingJason A. Donenfeld2018-04-301-1/+1
|
* global: Clean up JavaSamuel Holland2018-04-3013-215/+237
| | | | | | Address Java and Android lints. Signed-off-by: Samuel Holland <samuel@sholland.org>
* global: Clean up XMLSamuel Holland2018-04-303-9/+18
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* global: Automatic code formattingSamuel Holland2018-04-3022-919/+893
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* Tunnel importer: stricter file filtersJason A. Donenfeld2018-04-301-2/+8
|
* Preferences: use v14 material styleJason A. Donenfeld2018-04-301-1/+1
|
* ZipExporterPreference: requireNonNull is redundantJason A. Donenfeld2018-04-301-2/+2
|
* wg: Collapse fab when pressing back before exitingHarsh Shandilya2018-04-302-2/+19
| | | | Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* SettingsActivity: Migrate permissions check to AppCompatHarsh Shandilya2018-04-301-20/+11
| | | | | | Pretty straightforward, I was clearly overthinking this. Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* ZipExporterPreference: Correctly get preference activityHarsh Shandilya2018-04-301-2/+14
| | | | | | | | In AppCompat based preferences, this#getContext returns an object of android.view.ContextThemeWrapper class from where we can safely extract a reference to our parent activity. Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* TunnelListFragment: Use Collections methods in place of ArraysHarsh Shandilya2018-04-301-2/+3
| | | | Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* wg: Break out crossport dependencyHarsh Shandilya2018-04-307-12/+11
| | | | | | | Replace all crossport uses with upstream design support library components. Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* SettingsActivity: Gracefully exit when options menu home is pressedHarsh Shandilya2018-04-301-0/+12
| | | | | | | | | | | | | | | | | | | | This is an activity, so it does not join the fragment backstack, but instead piles on top SettingsActivity | -> MainActivity | -> EditorFragment | -> DetailFragment | -> ListFragment Without overriding the back button in the toolbar, it simply kills the entire state on MainActivity and causes it to reload. By calling finish() on the activity when home is pressed from the item menu we can silently make it die without affecting any underlying states held by MainActivity and instead return to the exact fragment we launched settings from. Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* SettingsActivity: Define preferenceTheme for AppCompatHarsh Shandilya2018-04-302-0/+4
| | | | Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* wg: Migrate menu visibility to AppCompatHarsh Shandilya2018-04-304-12/+16
| | | | Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* wg: Add and use dummy AppThemeHarsh Shandilya2018-04-302-1/+2
| | | | | | | Preparation for when the app will start carrying colors reflecting the WireGuard brand. Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* Prefer AppCompat classesHarsh Shandilya2018-04-307-44/+42
| | | | | | | | | | AppCompat is the preferred way to go for any app targetting a wider range of SDKs. Replace all activities and fragments with their AppCompat variants and fixup method calls to use support variants. Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* TunnelDetailFragment: rewrite and simplifyJason A. Donenfeld2018-04-301-22/+10
|
* TunnelEditorFragment: rewrite and simplifyJason A. Donenfeld2018-04-307-280/+200
| | | | | This should remove some null pointer dereferences and overall make the thing more robust.
* Allow exporting to zip fileJason A. Donenfeld2018-04-295-2/+180
|
* Allow importing from zip fileJason A. Donenfeld2018-04-283-46/+119
|
* config: Minor cleanupHarsh Shandilya2018-04-284-18/+23
| | | | | | | | | - 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>
* Quick cleanup across the boardHarsh Shandilya2018-04-288-19/+16
| | | | | | | | | | - Clean up imports - Adjust method visibility - Drop in NonNull annotations where needed - Prevent potential NPEs from nulled getActivity calls - Remove unused methods Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* Use validation instead of two-way bindingJason A. Donenfeld2018-04-2811-147/+382
| | | | | | | | | | | | 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-274-14/+29
| | | | | 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-274-37/+35
| | | | | | | 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.