aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/java/com (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* crypto: KeyEncoding: Fix styleHarsh Shandilya2018-06-021-25/+32
| | | | | | | - Replace python style variable names with camel case - Don't declare multiple variables in the same line Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Topic: John does things differentlyJason A. Donenfeld2018-06-021-29/+30
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ExporterPreferences: disable control immediatelyJason A. Donenfeld2018-06-022-4/+8
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Preferences: add log exporterJason A. Donenfeld2018-06-022-14/+128
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Topic: make reentrantJason A. Donenfeld2018-06-011-6/+17
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* BaseActivity: flush themed icon cache on theme changeJason A. Donenfeld2018-06-011-0/+18
| | | | | | | | | | The most terrible hack you have ever seen. The drawable cache isn't properly flushed when changing the theme -- a frameworks bug, evidently -- so we work around it by digging deep into the mud. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Settings: add versionJason A. Donenfeld2018-06-013-0/+73
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelListFragment: Dejank action mode titleHarsh Shandilya2018-06-011-1/+5
| | | | | | | | | | | | 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>
* FloatingActionButton: Cleanup declaration of TranslucentLayerDrawable classHarsh Shandilya2018-06-011-2/+2
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* FloatingActionButton: Make attribute grabbing not be terribleHarsh Shandilya2018-06-011-8/+8
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* theme: add dark theme with toggleJason A. Donenfeld2018-06-014-3/+174
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: fix theme situation and clean up cruft while adding more cruftJason A. Donenfeld2018-06-013-21/+41
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* fab: default to app theme colorsHarsh Shandilya2018-06-012-7/+14
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* fab: use AppCompatTextView for labelHarsh Shandilya2018-06-011-2/+3
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* fab: cleanupHarsh Shandilya2018-06-013-34/+32
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* wg-quick: don't break push notificationsJason A. Donenfeld2018-05-311-1/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* KeyEncoding: more constant timeJason A. Donenfeld2018-05-301-21/+28
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* FloatingActionButton: import cleaned up getbase codeJason A. Donenfeld2018-05-294-0/+1226
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* SharedLibraryLoader: introduce to work around Samsung PackageManager bugsJason A. Donenfeld2018-05-292-4/+76
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Support always-on-vpnJason A. Donenfeld2018-05-274-6/+55
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* EditorFragment: show toast on creation tooJason A. Donenfeld2018-05-271-0/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* libwg-go: try no stickiness and no roamingJason A. Donenfeld2018-05-261-6/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* libwg-go: reenable sticky sockets, just slightly less stickyJason A. Donenfeld2018-05-241-0/+6
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ExceptionLoggers: never have a null messageJason A. Donenfeld2018-05-166-11/+20
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* 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 <me@msfjarvis.dev>
* 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 <me@msfjarvis.dev>
* 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 <me@msfjarvis.dev>
* 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 <me@msfjarvis.dev>
* TunnelEditor: Remove unused parameterHarsh Shandilya2018-05-031-2/+2
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* config: loosen parser to match realityJason A. Donenfeld2018-05-032-5/+9
| | | | | | Mid-line comments, mixed case. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: fix up copyrightsJason A. Donenfeld2018-05-0347-33/+49
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* 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 <me@msfjarvis.dev>
* ZipExporterPreference: account for directory already existingJason A. Donenfeld2018-04-301-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* 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-301-2/+5
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* global: Automatic code formattingSamuel Holland2018-04-3014-905/+876
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* Tunnel importer: stricter file filtersJason A. Donenfeld2018-04-301-2/+8
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ZipExporterPreference: requireNonNull is redundantJason A. Donenfeld2018-04-301-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* wg: Collapse fab when pressing back before exitingHarsh Shandilya2018-04-302-2/+19
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* SettingsActivity: Migrate permissions check to AppCompatHarsh Shandilya2018-04-301-20/+11
| | | | | | Pretty straightforward, I was clearly overthinking this. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* 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 <me@msfjarvis.dev>
* TunnelListFragment: Use Collections methods in place of ArraysHarsh Shandilya2018-04-301-2/+3
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* wg: Break out crossport dependencyHarsh Shandilya2018-04-305-8/+7
| | | | | | | Replace all crossport uses with upstream design support library components. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* 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 <me@msfjarvis.dev>
* 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 <me@msfjarvis.dev>
* TunnelDetailFragment: rewrite and simplifyJason A. Donenfeld2018-04-301-22/+10
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelEditorFragment: rewrite and simplifyJason A. Donenfeld2018-04-306-278/+198
| | | | | | | This should remove some null pointer dereferences and overall make the thing more robust. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>