aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/java/com/wireguard/android (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix locale usageJason A. Donenfeld2018-12-119-39/+26
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Unwrap the correct exceptionZachary Wander2018-12-111-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Localize exception messagesZachary Wander2018-12-1112-35/+62
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Export actual configuration for zipsJason A. Donenfeld2018-12-101-1/+1
| | | | | Reported-by: John Greenwood <ijohnyyh@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Use English lower casingJason A. Donenfeld2018-12-093-6/+10
| | | | | | | In Turkish, I becomes ı instead of i, which is a problem when matching things like "AllowedIPs". Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Do not close zip input streamJason A. Donenfeld2018-12-081-2/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Remove ACRAJason A. Donenfeld2018-12-081-69/+1
| | | | | | | | This was requested by developers who never wound up using it. It's not really worth keeping around, since the play console gives us most of what we need anyway. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Remodel the ModelSamuel Holland2018-12-0824-175/+830
| | | | | | | | | | | | | | - The configuration and crypto model is now entirely independent of Android classes other than Nullable and TextUtils. - Model classes are immutable and use builders that enforce the appropriate optional/required attributes. - The Android config proxies (for Parcelable and databinding) are moved to the Android side of the codebase, and are designed to be safe for two-way databinding. This allows proper observability in TunnelDetailFragment. - Various robustness fixes and documentation updates to helper classes. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Auto-format the source directoriesSamuel Holland2018-11-1124-706/+708
| | | | | | Blame Jason for writing Java in vim. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: update copyright headersJason A. Donenfeld2018-09-0650-88/+50
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* QuickTileService: Don't use deprecated getDrawable methodHarsh Shandilya2018-08-261-2/+1
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Target SDK 28Harsh Shandilya2018-08-261-4/+1
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* FragmentUtils: Make final and prevent instantiationHarsh Shandilya2018-08-261-1/+5
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Extract error messages to string resourcesHarsh Shandilya2018-08-261-4/+6
| | | | | | Useful for validation errors and localisation later on Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* MonkeyedSnackbar: removeJason A. Donenfeld2018-08-267-53/+10
| | | | | | This didn't actually help with much and caused problems. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* FloatingActionsMenu: don't wrap context on asus api 21Jason A. Donenfeld2018-07-301-2/+6
| | | | | | Works around frameworks bug. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Show different color for multiselectionJason A. Donenfeld2018-07-302-20/+66
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* MonkeyedSnackbar: fix typosJason A. Donenfeld2018-07-291-3/+6
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* MonkeyedSnackbar: work around Harsh's broken phoneJason A. Donenfeld2018-07-297-10/+50
| | | | | | | | I think I'd probably like to revert this, since presumably there's a good reason in the first place why the support lib disables animations when accessibility services are turned on? Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* FloatingActionButtonBehavior: animate transitionsJason A. Donenfeld2018-07-291-4/+32
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Roll back to API 27 for nowJason A. Donenfeld2018-07-291-1/+4
| | | | | | | There's no source available for API 28, which is a pain. But this commit should be reverted whenever source is released. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Target API 28Jason A. Donenfeld2018-07-292-11/+11
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelListFragment: show selected tunnelJason A. Donenfeld2018-07-291-5/+34
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelListFragment: fix multiselection on rotationJason A. Donenfeld2018-07-291-1/+25
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* FloatingActionButonBehavior: set translation back to 0 when snackbar diesJason A. Donenfeld2018-07-291-0/+7
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* MainActivity: Fix fragment selection logicSamuel Holland2018-07-282-107/+65
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* Application: refuse to run on old androidJason A. Donenfeld2018-07-281-0/+12
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* QuickTileService: fix bug the wrong wayJason A. Donenfeld2018-07-281-0/+14
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* config: show more informative error message on wrong keyJason A. Donenfeld2018-07-271-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Set ACRA install sourceJason A. Donenfeld2018-07-261-8/+15
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelDetailFragment now restores state correctly after process deathEric Kuck2018-07-265-34/+49
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Application: use proper completablefuture for backendJason A. Donenfeld2018-07-265-52/+24
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Wire up ACRAJason A. Donenfeld2018-07-261-0/+66
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* FloatingActionBehaviour: Adjust constructorsHarsh Shandilya2018-07-261-2/+3
| | | | | | Get these in line with the parent class Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ThemeChangeAwareActivity: reintroduce cache busterJason A. Donenfeld2018-07-251-0/+37
| | | | | | | This is still needed by certain icons, like the trash icon in the peer editor. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* MainActivity: attempt to fix commit state exceptionsJason A. Donenfeld2018-07-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an attempt to fix: java.lang.IllegalStateException: at android.support.v4.app.FragmentManagerImpl.checkStateLoss (FragmentManager.java:2053) at android.support.v4.app.FragmentManagerImpl.enqueueAction (FragmentManager.java:2079) at android.support.v4.app.BackStackRecord.commitInternal (BackStackRecord.java:678) at android.support.v4.app.BackStackRecord.commit (BackStackRecord.java:632) at com.wireguard.android.activity.MainActivity.moveToState (MainActivity.java:58) at com.wireguard.android.activity.MainActivity.onSelectedTunnelChanged (MainActivity.java:157) at com.wireguard.android.activity.BaseActivity.setSelectedTunnel (BaseActivity.java:75) at com.wireguard.android.fragment.BaseFragment.setSelectedTunnel (BaseFragment.java:82) at com.wireguard.android.fragment.TunnelListFragment.lambda$null$4$TunnelListFragment (TunnelListFragment.java:307) at com.wireguard.android.fragment.TunnelListFragment$$Lambda$4.onClick (Unknown Source:6) at android.view.View.performClick (View.java:6274) at android.view.View$PerformClick.run (View.java:24729) at android.os.Handler.handleCallback (Handler.java:789) at android.os.Handler.dispatchMessage (Handler.java:98) at android.os.Looper.loop (Looper.java:169) at android.app.ActivityThread.main (ActivityThread.java:6595) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:240) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:767) But this is probably the wrong way to fix it and instead moveToState needs to be reimagined. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelEditorFragment: plug memory leak on listenersJason A. Donenfeld2018-07-251-0/+14
| | | | | | | | | Apparently these don't get GC'd unless they're removed explicitly, because there's a global singleton registry of them. So, introduce a little registry of our own. Reported-by: Samuel Holland <samuel@sholland.org> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* qrcode: minor adjustmentsJason A. Donenfeld2018-07-252-5/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Added QR code scanner as tunnel import methodEric Kuck2018-07-252-0/+150
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tools: pass in debug package nameJason A. Donenfeld2018-07-241-2/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* FloatingActionsMenuRecyclerViewScrollListener: add final modifiersJason A. Donenfeld2018-07-221-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* treewide: Optimize importsHarsh Shandilya2018-07-224-10/+0
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* fab: move in direct ratio to scrollJason A. Donenfeld2018-07-205-67/+52
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* fab: make icons always whiteJason A. Donenfeld2018-07-202-34/+1
| | | | | | | | With the new shade of blue, perhaps this simply looks better. I don't like hard coding the color away from the theme, however. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelListFragment: Allocate interpolators outside scroll listenerHarsh Shandilya2018-07-201-2/+5
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* TunnelEditorFragment: fix null pointer dereferenceJason A. Donenfeld2018-07-191-2/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* QuickTileService: fix null pointer dereferenceJason A. Donenfeld2018-07-191-2/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelListFragment: setOnScrollListener is old, but we support API 21, so we have to use itJason A. Donenfeld2018-07-181-0/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* AppListDialogFragment: getArguments is null before onCreateJason A. Donenfeld2018-07-181-1/+8
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* fab: use auto calculated fling thresholdJason A. Donenfeld2018-07-181-3/+8
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>