| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
|
|
|
| |
Blame Jason for writing Java in vim.
|
| |
|
|
|
|
| |
This didn't actually help with much and caused problems.
|
|
|
|
|
|
| |
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: Samuel Holland <samuel@sholland.org>
|
|
|
|
|
|
|
|
| |
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: Eric Kuck <eric@bluelinelabs.com>
|
| |
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
There should be no need to deference an extra variable.
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
|
| |
|
|
|
|
| |
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
|
|
|
|
|
| |
Address Java and Android lints.
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
|
|
|
| |
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
|
|
|
|
|
|
| |
Replace all crossport uses with upstream design
support library components.
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
|
|
|
|
|
| |
This should remove some null pointer dereferences and overall make the
thing more robust.
|
|
|
|
|
|
|
|
|
|
| |
- 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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Rename all of the functions to be in line with setConfig/setState
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Otherwise we might dereference it, per this play store gathered trace:
Xiaomi Redmi 3S (land), 2048MB RAM, Android 7.1
java.lang.NullPointerException:
at com.wireguard.android.model.Tunnel.setConfig (Tunnel.java:118)
at com.wireguard.android.fragment.TunnelEditorFragment.onOptionsItemSelected (TunnelEditorFragment.java:160)
at android.app.Fragment.performOptionsItemSelected (Fragment.java:2478)
at android.app.FragmentManagerImpl.dispatchOptionsItemSelected (FragmentManager.java:2182)
at android.app.FragmentController.dispatchOptionsItemSelected (FragmentController.java:336)
at android.app.Activity.onMenuItemSelected (Activity.java:3211)
at com.android.internal.policy.PhoneWindow.onMenuItemSelected (PhoneWindow.java:1219)
at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected (MenuBuilder.java:761)
at com.android.internal.view.menu.MenuItemImpl.invoke (MenuItemImpl.java:152)
at com.android.internal.view.menu.MenuBuilder.performItemAction (MenuBuilder.java:904)
at com.android.internal.view.menu.MenuBuilder.performItemAction (MenuBuilder.java:894)
at android.widget.ActionMenuView.invokeItem (ActionMenuView.java:616)
at com.android.internal.view.menu.ActionMenuItemView.onClick (ActionMenuItemView.java:152)
at android.view.View.performClick (View.java:5637)
at android.view.View$PerformClick.run (View.java:22433)
at android.os.Handler.handleCallback (Handler.java:751)
at android.os.Handler.dispatchMessage (Handler.java:95)
at android.os.Looper.loop (Looper.java:153)
at android.app.ActivityThread.main (ActivityThread.java:6244)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:891)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:781)
|
|
|
|
| |
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
|
|
|
| |
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
|
|
|
| |
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
| |
|
|
Signed-off-by: Samuel Holland <samuel@sholland.org>
|