summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java/com/wireguard
AgeCommit message (Collapse)Author
2018-06-01Settings: add versionJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-06-01TunnelListFragment: Dejank action mode titleHarsh Shandilya
When unselecting items, the toolbar briefly says '0 items selected' before it reverts back to the non-action mode toolbar which feels janky at best. To mitigate this, just set a blank title to the action mode toolbar when item count is 0, to facilitate the smoothness of the transition to non-action mode toolbar. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2018-06-01FloatingActionButton: Cleanup declaration of TranslucentLayerDrawable classHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2018-06-01FloatingActionButton: Make attribute grabbing not be terribleHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2018-06-01theme: add dark theme with toggleJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-06-01global: fix theme situation and clean up cruft while adding more cruftJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-06-01fab: default to app theme colorsHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2018-06-01fab: use AppCompatTextView for labelHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2018-06-01fab: cleanupHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2018-05-31wg-quick: don't break push notificationsJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-05-30KeyEncoding: more constant timeJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-05-29FloatingActionButton: import cleaned up getbase codeJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-05-29SharedLibraryLoader: introduce to work around Samsung PackageManager bugsJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-05-27Support always-on-vpnJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-05-27EditorFragment: show toast on creation tooJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-05-26libwg-go: try no stickiness and no roamingJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-05-24libwg-go: reenable sticky sockets, just slightly less stickyJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-05-16ExceptionLoggers: never have a null messageJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-05-16android: Directly use views for snackbarsHarsh Shandilya
There should be no need to deference an extra variable. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2018-05-09global: Cleanup line lengths and misc lint warningsHarsh Shandilya
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 <me@msfjarvis.dev>
2018-05-09MainActivity: Nip out as early as possible when moving to same fragmentHarsh Shandilya
Save the useless logging and fragment manager object creation. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2018-05-05TunnelEditor: Add toast messages to success eventsHarsh Shandilya
Letting the user know that the operation went successfully via visual cues is a nice UX touch. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2018-05-03TunnelEditor: Remove unused parameterHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2018-05-03config: loosen parser to match realityJason A. Donenfeld
Mid-line comments, mixed case. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-05-03global: fix up copyrightsJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-05-02Keypair: Minimize the scope of warning suppressionSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-05-02KeyEncoding: Address lints/warnings and match line lengthSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-05-02global: Add or update copyright headers in Java codeSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-05-02global: Some more lint cleanupHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2018-04-30ZipExporterPreference: account for directory already existingJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-04-30global: Clean up JavaSamuel Holland
Address Java and Android lints. Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-04-30global: Clean up XMLSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-04-30global: Automatic code formattingSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-04-30Tunnel importer: stricter file filtersJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-04-30ZipExporterPreference: requireNonNull is redundantJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-04-30wg: Collapse fab when pressing back before exitingHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2018-04-30SettingsActivity: Migrate permissions check to AppCompatHarsh Shandilya
Pretty straightforward, I was clearly overthinking this. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2018-04-30ZipExporterPreference: Correctly get preference activityHarsh Shandilya
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 <me@msfjarvis.dev>
2018-04-30TunnelListFragment: Use Collections methods in place of ArraysHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2018-04-30wg: Break out crossport dependencyHarsh Shandilya
Replace all crossport uses with upstream design support library components. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2018-04-30SettingsActivity: Gracefully exit when options menu home is pressedHarsh Shandilya
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 <me@msfjarvis.dev>
2018-04-30Prefer AppCompat classesHarsh Shandilya
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 <me@msfjarvis.dev>
2018-04-30TunnelDetailFragment: rewrite and simplifyJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-04-30TunnelEditorFragment: rewrite and simplifyJason A. Donenfeld
This should remove some null pointer dereferences and overall make the thing more robust. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-04-29Allow exporting to zip fileJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-04-28Allow importing from zip fileJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-04-28config: Minor cleanupHarsh Shandilya
- Stop implicitly assuming locales in String.format - Cleanup method visibilities - Improve uses of Integer methods - Remove unused getToken method Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2018-04-28Quick cleanup across the boardHarsh Shandilya
- 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 <me@msfjarvis.dev>
2018-04-28Use validation instead of two-way bindingJason A. Donenfeld
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. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-04-27Do not do DNS lookups for IPsJason A. Donenfeld
This involves reflection, which is a bummer, but it's better than doing unnecessary DNS lookups. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>