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>
|
|
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
|
|
We decided in 402472237e8f that it's a bad idea for our use-case
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
|
|
Useful for validation errors and localisation later on
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
|
|
This didn't actually help with much and caused problems.
|
|
When a tunnel is running, saving the tunnel's config with an IPv6
address endpoint like [::1]:42 would result in the wrong format ::1:42.
This patch fixes it.
For endpoints with an IPv6 address(e.g. [::1]:42). Since the default
endpoint InetSocketAddress is created unresolved, getEndpointString()
returns "[::1]:42" (InetSocketAddress.getHostString() returns the
literal hostname). After the endpoint is resolved, getEndpointString()
returns "::1:42" (InetSocketAddress.getHostString() returns the IPv6
address without the square brackets). This inconsistent return values
caused the above mentioned bug.
With this patch, function getEndpointString would return the right
format string whether the endpoint is resolved or not.
Signed-off-by: Zhao Gang <gang.zhao.42@gmail.com>
|
|
This fixes the multi-user case, which cannot be determined at compile
time and probably isn't reasonable to consider anyway in a global
manner.
|
|
This isn't possible for colorForeground, colorBackground,
textAppearanceMedium, but at least it's useful for some things here.
|
|
Works around frameworks bug.
|
|
|
|
|
|
Why wasn't this done like this in the first place?
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
|
|
|
|
|
|
|
|
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?
|
|
|
|
|
|
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: Samuel Holland <samuel@sholland.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Get these in line with the parent class
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
|
|
This is still needed by certain icons, like the trash icon in the peer
editor.
|
|
|
|
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.
|
|
|
|
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>
|
|
|
|
|
|
This force pushing is going to be the death of me
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
|
|
|
|
|
|
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 <harsh@prjkt.io>
|
|
|
|
|
|
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
|