aboutsummaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
* Version bump0.0.20180725Jason A. Donenfeld2018-07-261-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelDetailFragment now restores state correctly after process deathEric Kuck2018-07-267-34/+57
| | | | 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-262-0/+69
| | | | 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>
* Version bump0.0.20180724Jason A. Donenfeld2018-07-251-2/+2
| | | | 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>
* style: coloring the navbar looks a bit strange when rotatedJason A. Donenfeld2018-07-251-9/+0
| | | | 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-254-16/+18
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Added QR code scanner as tunnel import methodEric Kuck2018-07-259-21/+231
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tools: Bump wireguard submoduleHarsh Shandilya2018-07-241-0/+0
| | | | | | This force pushing is going to be the death of me Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* tools: support ancient NDKsJason A. Donenfeld2018-07-244-4/+97
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tools: let wg(8) play with userspace implementationJason A. Donenfeld2018-07-244-10/+41
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* config: Remove Locale based string formatHarsh Shandilya2018-07-242-8/+4
| | | | | | | | | | | | The configurations are supposed to be in a very specific format which is not user-facing and hence doesn't have to be adjusted for locale avoiding both the redundancy as well as potential breakages in the configuration file format from different locales. Fixes: 71c67aa24ae2 ("config: Minor cleanup") Reported-by: Samuel Holland <samuel@sholland.org> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* tools: pass in debug package nameJason A. Donenfeld2018-07-244-4/+15
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Make placeholder prettyJason A. Donenfeld2018-07-234-6/+22
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Show help text when no tunnels are importedHarsh Shandilya2018-07-222-0/+15
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* FloatingActionsMenuRecyclerViewScrollListener: add final modifiersJason A. Donenfeld2018-07-221-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* RTL layout fixesHarsh Shandilya2018-07-225-4/+7
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* 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-206-68/+53
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Version bump0.0.20180720Jason A. Donenfeld2018-07-201-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* UI: use background color for navbar in dark modeHarsh Shandilya2018-07-201-0/+9
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* fab: make icons always whiteJason A. Donenfeld2018-07-206-39/+6
| | | | | | | | 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>
* theme: use less disgusting colorJason A. Donenfeld2018-07-201-1/+1
| | | | | | | | Harsh's "users" were offended by the dark theme. So, we change the accent to that used by gboard's dark theme, which should be pretty uncontroversial. 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>
* tools: bump versionJason A. Donenfeld2018-07-181-0/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Version bump0.0.20180718Jason A. Donenfeld2018-07-181-2/+2
| | | | 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>
* fab: add fab sized padding at bottom of recycler viewJason A. Donenfeld2018-07-181-0/+2
| | | | | | | This way we can keep scrolling when there are exactly the right number of items, so that the toggle switch becomes visible. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* fab: make fab respond to recyclerview scroll eventsHarsh Shandilya2018-07-184-1/+63
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* fab: slide fab up when a snackbar showsHarsh Shandilya2018-07-182-1/+34
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* android: QuickTileService: Do not use slashed icon on Android PHarsh Shandilya2018-07-161-6/+11
| | | | | | | | Android P features circle masked QS tiles which make use of colors to denote STATE_ACTIVE/STATE_INACTIVE rather than a slash across the drawable as seen on Android Oreo. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Version bump0.0.20180716Jason A. Donenfeld2018-07-161-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* InetAddresses: unwrap reflection exceptionsJason A. Donenfeld2018-07-161-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* android: TunnelListFragment: Annotate parameter to match super methodHarsh Shandilya2018-07-161-1/+2
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* BaseFragment: do not allow tunnel to be nullJason A. Donenfeld2018-07-131-0/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* config: dns servers can be nullJason A. Donenfeld2018-07-131-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* config: make loadData privateJason A. Donenfeld2018-07-132-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelEditorFragment: binding might be nullJason A. Donenfeld2018-07-131-0/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* QuickTileService: show intermediate state when changingJason A. Donenfeld2018-07-131-0/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: Add nullity annotationsEric Kuck2018-07-1348-310/+481
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Version bump0.0.20180711Jason A. Donenfeld2018-07-122-3/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Address lint issues in TunnelListFragmentHarsh Shandilya2018-07-121-6/+5
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>