aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/java/com/wireguard/android/activity (follow)
Commit message (Collapse)AuthorAgeFilesLines
* global: update copyright headersJason A. Donenfeld2018-09-065-9/+5
|
* MainActivity: Fix fragment selection logicSamuel Holland2018-07-281-107/+64
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* TunnelDetailFragment now restores state correctly after process deathEric Kuck2018-07-261-6/+7
|
* Application: use proper completablefuture for backendJason A. Donenfeld2018-07-261-1/+1
|
* 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.
* 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.
* treewide: Optimize importsHarsh Shandilya2018-07-221-4/+0
| | | | Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* fab: make icons always whiteJason A. Donenfeld2018-07-201-33/+0
| | | | | | With the new shade of blue, perhaps this simply looks better. I don't like hard coding the color away from the theme, however.
* global: Add nullity annotationsEric Kuck2018-07-135-32/+45
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Request VPN permissions on activationEric Kuck2018-07-091-10/+0
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Use instanceOf instead of getClassJason A. Donenfeld2018-07-082-2/+2
|
* global: move to Apache 2.0Jason A. Donenfeld2018-07-065-5/+5
|
* treewide: Optimize importsHarsh Shandilya2018-06-232-4/+0
| | | | Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* global: supply backend asynchronouslyJason A. Donenfeld2018-06-142-11/+23
| | | | | We can't block for IO, so move everything to async workers or to callbacks.
* BaseActivity: styleJason A. Donenfeld2018-06-071-2/+1
|
* Give Samuel heart attack by removing DaggerJason A. Donenfeld2018-06-073-6/+7
|
* MainActivity: Fix styleHarsh Shandilya2018-06-061-5/+2
| | | | Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* MainActivity: Silence useless warningHarsh Shandilya2018-06-051-0/+4
| | | | Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* MainActivity: collapse action menu on toolbar touchHarsh Shandilya2018-06-051-0/+9
| | | | Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* MainActivity: styleJason A. Donenfeld2018-06-051-1/+1
|
* DarkMode: move to shared preferences listenerJason A. Donenfeld2018-06-053-87/+79
|
* MainActivity: styleJason A. Donenfeld2018-06-041-1/+0
|
* BaseActivity: support android 5 and 6 when clearing drawable cacheJason A. Donenfeld2018-06-041-7/+15
|
* BaseActivity: invalidate icon cache on Android PJason A. Donenfeld2018-06-042-15/+15
|
* android: Cleanup classesHarsh Shandilya2018-06-021-2/+2
| | | | | | | - Use final modifer wherever possible - Use try-with-resources for input/output streams Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* BaseActivity: flush themed icon cache on theme changeJason A. Donenfeld2018-06-011-0/+18
| | | | | | | | The most terrible hack you have ever seen. The drawable cache isn't properly flushed when changing the theme -- a frameworks bug, evidently -- so we work around it by digging deep into the mud.
* theme: add dark theme with toggleJason A. Donenfeld2018-06-012-3/+63
|
* Support always-on-vpnJason A. Donenfeld2018-05-271-3/+4
|
* global: Cleanup line lengths and misc lint warningsHarsh Shandilya2018-05-091-3/+8
| | | | | | | | | 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>
* MainActivity: Nip out as early as possible when moving to same fragmentHarsh Shandilya2018-05-091-3/+3
| | | | | | Save the useless logging and fragment manager object creation. Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* global: fix up copyrightsJason A. Donenfeld2018-05-034-0/+4
|
* global: Add or update copyright headers in Java codeSamuel Holland2018-05-024-0/+20
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* global: Clean up JavaSamuel Holland2018-04-303-11/+11
| | | | | | Address Java and Android lints. Signed-off-by: Samuel Holland <samuel@sholland.org>
* global: Automatic code formattingSamuel Holland2018-04-301-14/+14
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* wg: Collapse fab when pressing back before exitingHarsh Shandilya2018-04-301-2/+11
| | | | Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* SettingsActivity: Migrate permissions check to AppCompatHarsh Shandilya2018-04-301-20/+11
| | | | | | Pretty straightforward, I was clearly overthinking this. Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* SettingsActivity: Gracefully exit when options menu home is pressedHarsh Shandilya2018-04-301-0/+12
| | | | | | | | | | | | | | | | | | | | 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>
* Prefer AppCompat classesHarsh Shandilya2018-04-304-21/+23
| | | | | | | | | | 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>
* Allow exporting to zip fileJason A. Donenfeld2018-04-291-0/+50
|
* GoBackend: Use the android VpnService to encapsulate the go backendAurélien Chabot2018-04-171-0/+10
|
* GoBackend: integrate into appJason A. Donenfeld2018-02-171-0/+8
|
* global: Fix or suppress most lints/warningsSamuel Holland2018-01-081-1/+2
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* global: Prefix tags with WireGuard/Jason A. Donenfeld2018-01-081-1/+1
|
* project: Global cleanupSamuel Holland2018-01-082-4/+4
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* ToolsInstaller: Extract to its own classesSamuel Holland2018-01-081-72/+0
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* BaseActivity: Make variable names consistentSamuel Holland2018-01-071-2/+2
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* Remove primary configuration preferenceSamuel Holland2018-01-071-9/+1
| | | | | | It is no longer used. Signed-off-by: Samuel Holland <samuel@sholland.org>
* Move bundle keys where they are usedSamuel Holland2018-01-071-3/+5
| | | | | | This both clarifies and simplifies the code. Signed-off-by: Samuel Holland <samuel@sholland.org>
* project: Minor cleanupsSamuel Holland2018-01-061-2/+0
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* MainActivity: Fix ActionBar after rotationSamuel Holland2018-01-061-7/+8
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>