Age | Commit message (Collapse) | Author |
|
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
|
|
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
|
|
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: Harsh Shandilya <harsh@prjkt.io>
|
|
Mid-line comments, mixed case.
|
|
|
|
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: Harsh Shandilya <harsh@prjkt.io>
|
|
|
|
|
|
Address Java and Android lints.
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: Harsh Shandilya <harsh@prjkt.io>
|
|
Pretty straightforward, I was clearly overthinking this.
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
|
|
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 <harsh@prjkt.io>
|
|
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
|
|
Replace all crossport uses with upstream design
support library components.
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
|
|
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 <harsh@prjkt.io>
|
|
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
|
|
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
|
|
Preparation for when the app will start carrying
colors reflecting the WireGuard brand.
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
|
|
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 <harsh@prjkt.io>
|
|
|
|
This should remove some null pointer dereferences and overall make the
thing more robust.
|
|
|
|
|
|
- Stop implicitly assuming locales in String.format
- Cleanup method visibilities
- Improve uses of Integer methods
- Remove unused getToken method
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
|
|
- 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.
|
|
This involves reflection, which is a bummer, but it's better than doing
unnecessary DNS lookups.
|
|
This will make the two way data binding crash more, but it will improve
the robustness of the config file parser, which deals with exceptions
gracefully, and when we move to one way data binding, it will help with
that too.
|
|
It might be removed on an update.
|
|
We don't actually comprehend how this works yet, so disable it. But
we'll need to add support for this at some point.
|
|
This synchronizes the OS's connection state with ours, such as when the
user disconnects using the system UI.
|
|
|
|
|
|
|
|
|
|
This sucks, but it works with mobile networks. Later we can do something
sophisticated like we do with wg-quick.c, but not now.
|
|
Since the amount of mind numbing boiler plate has been increased, this
must be the proper way to do things.
|
|
After a timeout the android system is destroying the vpn service when it
is not used. By using a completable future we can wait for the service
to be relaunch on demand.
|
|
|