aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui (follow)
Commit message (Collapse)AuthorAgeFilesLines
* global: bump copyright yearJason A. Donenfeld2021-10-2957-57/+57
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: remove kernel module downloaderJason A. Donenfeld2021-10-2932-215/+118
| | | | | | | | Nathan Chance dropped the ball repeatedly and never maintained this in a consistent way that anybody could use. With Android 12 out now, just drop it all together. A bummer, but I don't see much of a choice. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: fix and silence lint errorsHarsh Shandilya2021-10-282-1/+2
| | | | | | | | | | - The `copied_to_clipboard` translation for Farsi does not include the placeholder, so it has been removed. - A couple lints that are errors but we cannot particularly do anything about were downgraded to warnings. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* gradle: upgrade AndroidX dependenciesHarsh Shandilya2021-10-282-3/+3
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* strings: sync translationsHarsh Shandilya2021-10-272-0/+357
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: upgrade zxing-android-embeddedHarsh Shandilya2021-10-252-13/+10
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* strings: sync with crowdinJason A. Donenfeld2021-09-2613-4/+208
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui,tunnel: support DNS search domainsJason A. Donenfeld2021-09-254-6/+40
| | | | | | | | wg-quick has supported this for a while, but not the config layer, and not the Go backend, so wire this all up. Requested-by: Alexis Geoffrey <alexis.geoffrey97@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* gradle: update property set with AGP 7 experimental flagsHarsh Shandilya2021-07-291-2/+5
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* strings: sync translationsHarsh Shandilya2021-07-2924-95/+737
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* build: switch to modern plugin application layoutHarsh Shandilya2021-07-291-4/+5
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: mark app_name string as untranslatableHarsh Shandilya2021-07-292-2/+2
| | | | | | WireGuard is a brand name that should not be localized. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* tunnel: retry DNS resolution for 10 secondsJason A. Donenfeld2021-05-262-1/+3
| | | | | | | | | | This has several problems: 1) it blocks the main thread; 2) it doesn't distinguish between a permanent error and a transient one; 3) the 10 seconds is hard coded; 4) there's no way for the user to cancel it. We'll have to improve this. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: upgrade AndroidX dependenciesHarsh Shandilya2021-05-191-1/+1
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: update datastore and rework apiJason A. Donenfeld2021-05-063-33/+37
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: remove hack for broken kotlin compilerJason A. Donenfeld2021-05-061-5/+1
| | | | | | Seems like things are finally fixed. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: replace deprecated string operationsHarsh Shandilya2021-05-053-10/+6
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: abstract out theme attributes to reduce overlapHarsh Shandilya2021-04-212-22/+4
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* strings: replace three dots with ellipsis characterHarsh Shandilya2021-04-212-4/+4
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: remove unnecessary v21 styles overrideHarsh Shandilya2021-04-211-26/+0
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* strings: remove invalid translation from FarsiHarsh Shandilya2021-04-211-1/+0
| | | | | | copied_to_clipboard is a format string and must have a format specifier Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: remove some more non-null assertions on binding fieldsHarsh Shandilya2021-04-212-2/+2
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: reduce size of QS tile drawableHarsh Shandilya2021-04-211-2/+2
| | | | | | | This will be rendered on an even smaller scale on devices, but 400dp x 400dp was simply too big and could cause performance issues. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* strings: fix resource qualifier for IndonesianHarsh Shandilya2021-04-211-0/+0
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* TunnelListFragment: drop incorrect non-null assertionHarsh Shandilya2021-04-211-1/+1
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* strings: sync translationsHarsh Shandilya2021-04-1114-56/+653
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* build: upgrade Kotlin and turn on IR compilerHarsh Shandilya2021-03-011-0/+1
| | | | | | | | | Kotlin has been building a new JVM backend for a while now and it is finally in Beta, scheduled to hit stable in Kotlin 1.4.50. This is the time to enable it and report any bugs we hit, before it becomes the default. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* build: upgrade to ZXING 4.1.0Harsh Shandilya2021-02-191-1/+4
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* tunnel: report git commit as wgVersionJason A. Donenfeld2021-02-1216-16/+16
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* strings: sync translationsHarsh Shandilya2021-01-233-31/+236
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ClipboardUtils: localize clipboard notification snackJason A. Donenfeld2021-01-012-1/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* strings: sync with crowdinJason A. Donenfeld2020-12-217-0/+532
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: show all apps with internet permission in exclusions listHarsh Shandilya2020-11-161-7/+6
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: test for any camera, not just rear oneJason A. Donenfeld2020-11-101-1/+1
| | | | | | | Some folks use chromebooks, which don't have rear cameras. Reported-by: Jay Tuley <jay.tuley@ekonbenefits.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* strings: sync translationsHarsh Shandilya2020-11-071-0/+184
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* build: add crowdin syncer script and use itJason A. Donenfeld2020-10-1412-4/+1013
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: update to mdc 1.3.0-alpha03Jason A. Donenfeld2020-10-051-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* DownloadsFileSaver: initialize callback in constructor, not on the flyJason A. Donenfeld2020-10-023-9/+22
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: upgrade AndroidX biometricJason A. Donenfeld2020-10-021-5/+4
| | | | | | | The BiometricConstants class was removed and these were folded into BiometricPrompt. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: use commit extension from fragment-ktxHarsh Shandilya2020-09-303-16/+19
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: account for binding disappearing on detail fragmentJason A. Donenfeld2020-09-301-7/+11
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tv: hack gridlayoutmanager to fill columns before row if we're not scrollingJason A. Donenfeld2020-09-271-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we're horizontally scrolling, it makes sense to fill rows before columns. But if it all fits in one page and we don't need to scroll horizontally, it looks ridiculous. So, in this case, rearrange the tiles so that it appears to fill columns before rows. But we don't want things suddenly jumping around, so actually, keep the same ordering as rows-before-columns, but add invisible spaces after certain items, so that the fill area makes it look as though it's columns-before-rows. This winds up being much more visually pleasing. We do this by figuring out this kind of transformation: If we convert this matrix: 0 3 6 1 4 _ 2 5 _ To this one: 0 2 4 6 1 3 5 _ _ _ _ _ For a given index, how many spaces are under it? This changes depending on how many total are in a grid. Going from 3x3 to 4x3, for example, we have: count == 12, index = count == 11, index = 10 count == 10, index = 7,9 count == 9, index = 4,6,8 count == 8, index = 1,3,5,7 count == 7, index = 1,3,5,6! count == 6, index = 1,3,4!,5! count == 5, index = 1,2!,3!,4! count == 4, index = 0!,1!,2!,3! count == 3, index = 0!,1!,2! count == 2, index = 0!,1! count == 1, index = 0! count == 0, index = The '!' means two blanks below, no '!' means one blank below, and no mention means no blanks below. This commit adds code to compute such a table on the fly. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: queue up tunnel mutating on activity scope instead of fragment scopeJason A. Donenfeld2020-09-266-69/+80
| | | | | | | | | | | | Fragment scopes get cancelled when the fragment goes away, but we don't actually want to cancel an in-flight transition in that case. Also, before when the fragment would cancel, there'd be an exception, and the exception handler would call Fragment::getString, which in turn called requireContext, which caused an exception. Work around this by using the `activity ?: Application.get()` idiom to always have a context for strings and toasts. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: print proper exception trace from log viewerJason A. Donenfeld2020-09-261-1/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: request intent permissions from hidden activityJason A. Donenfeld2020-09-261-2/+19
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tv: handle going up directories betterJason A. Donenfeld2020-09-242-25/+41
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tv: show volume descriptions for file pickerJason A. Donenfeld2020-09-241-4/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: account for null data in callbackJason A. Donenfeld2020-09-241-0/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: cleanup code after churnJason A. Donenfeld2020-09-235-220/+206
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tv: use system picker for API 29+Jason A. Donenfeld2020-09-231-10/+24
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>