aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* ui: use Material switch componentHarsh Shandilya2023-03-241-2/+2
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: migrate to OnBackPressedDispatcherJason A. Donenfeld2023-03-243-10/+28
| | | | | | | This is compatible with Android 13's prediction-based back gesture animation. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: raise target SDK to 33Harsh Shandilya2023-03-241-1/+1
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: set selected tunnel after creating fragmentsJason A. Donenfeld2023-03-241-8/+3
| | | | | | | | | | I'm not sure why that comment (Samuel's) was there saying it was necessary. Given it's been async for a long while, this wasn't guaranteed anyway. So let's get rid of it and see what happens. Screen rotation seems fine thus far. Cc: Samuel Holland <samuel@sholland.org> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: switch from using launchWhenCreated to using repeatOnLifecycleJason A. Donenfeld2023-03-241-1/+8
| | | | | | Apparently the former is deprecated. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: simplify IME displaying in ConfigNamingDialogFragmentJason A. Donenfeld2023-03-242-45/+8
| | | | | | Also cleanup some event listener flow. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: migrate to MenuProviderHarsh Shandilya2023-03-222-13/+26
| | | | | | | AndroidX Activity 1.4.0 introduced the new lifecycle-dependent MenuProvider APIs that supersede existing onCreateOptionsMenu-style menus. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: address Parcelable API deprecationsHarsh Shandilya2023-03-222-2/+8
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: address PackageManager API deprecationsHarsh Shandilya2023-03-221-1/+14
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* gradle: use idiomatic task handlingHarsh Shandilya2023-03-221-5/+5
| | | | | | | | - The hand-rolled clean task is not required - Tasks should use configureEach to prevent eager evaluation Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* tools: compile with latest NDKJason A. Donenfeld2023-03-221-1/+0
| | | | | | The -mthumb -> -marm hack is unfortunate. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: set button text after loading app list in AppListDialogFragmentJason A. Donenfeld2023-03-221-0/+1
| | | | | | | Otherwise, for lots of apps, the dialog shows before they're enumerated, and the button text never gets set. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* gradle: use same NDK for tunnel and UIL.W.Reek2023-03-211-0/+1
| | | | | | Fixes: 4f261560 ("gradle: force the use of an older NDK version") Signed-off-by: L.W.Reek <syphyr@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: Google Play requires target API level 31 or higherL.W.Reek2023-03-211-1/+1
| | | | | | | Fix build failure from lint check Signed-off-by: L.W.Reek <syphyr@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* strings: sync with crowdinJason A. Donenfeld2023-03-2125-89/+95
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: bump copyright dateJason A. Donenfeld2023-03-2158-58/+58
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: update to gradle 7.4.2 and restructure lint blockJason A. Donenfeld2023-03-211-4/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* gradle: adjust for and raise compileSdk to 33SlipkHunter2023-01-202-7/+14
| | | | | Signed-off-by: SlipkHunter <abrito025@gmail.com> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* gradle: migrate to namespace attributeHarsh Shandilya2023-01-202-1/+1
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: add barrier to fix detail fragment overlapSlipkHunter2022-07-071-7/+10
| | | | | | | When listen port and MTU are hidden, we need a barrier here. Signed-off-by: SlipkHunter <abrito025@gmail.com> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* gradle: update AndroidX and KotlinHarsh Shandilya2022-06-151-1/+0
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: reorder constraints to fix detail fragment overlapHarsh Shandilya2022-05-261-3/+7
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: move default style to Material3 with Dynamic ColorsHarsh Shandilya2022-05-265-22/+23
| | | | | | | The TV theme has been kept as-is since Material You guidance around this is a bit scarce at the moment. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: normalise icon tints and remove unused drawableHarsh Shandilya2022-05-2613-23/+25
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: remove unnecessary boolean checkHarsh Shandilya2022-05-261-3/+1
| | | | | | | | | This check was added in 3c31c340d86f when the kernel module loader was introduced into the app lifecycle, to avoid attempting to start a root shell twice. When the module loader was removed in a03ad51622d338d1c, this flag was accidentally left in when it should have been deleted. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: word wrap settings headersVlad Loktionov2022-03-201-0/+5
| | | | | | | Apparently some translations make this wrap, which is bad. Signed-off-by: Vlad Loktionov <yobabay23@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: exclude TunnelToggleActivity from recentsRin Patch2022-03-201-1/+2
| | | | | | | | | Fixes annoying behavior in quick settings widget, when you enable the tunnel, try to switch to last used app, but instead it switches to the toggle activity and turns the tunnel off. Signed-off-by: Rin Patch <rin@patch.cx> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: make validity check from QR code image scanner staticHarsh Shandilya2022-03-062-10/+10
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: allow importing tunnel from an QR image stored on the deviceNikita Pustovoi2022-03-064-1/+136
| | | | | | | | | | | | | | | | | | | | | | | | | Add a new feature to import a tunnel from a saved QR image, this feature integrates into 'import from file' flow, however adds a condition, if file is an image, attempt to parse it as QR image file. My use case for this feature, is to allow easier sharing of tunnels to family. Scanning QR code is ok when you have an external display to show it, but if you sent QR code to someone, there is no way to import it in the app. If you share a config file, that becomes way harder for a non-technical person to import as now they need to find a file with that name in the file picker etc etc, Where the images are very visible in the file picker, and user can easily recognize it for import. Testing: - Click "+" blue button, try to import a valid `.conf` file - the 'original' file flow should not be affected - Click "+" blue button, try to import a valid QR code image - if QR code was parsed, then a new tunnel will be added. - Click "+" blue button, try to import an invalid QR code image - Error message will be shown Signed-off-by: Nikita Pustovoi <deishelon@gmail.com> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: add margin on empty list textMarcel Joss2022-01-172-0/+3
| | | | | Signed-off-by: Marcel Joss <marceljoss@hotmail.ch> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: make when statements exhaustive everywhereHarsh Shandilya2022-01-082-0/+2
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* 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>