aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/res/layout (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename app module to uiHarsh Shandilya2020-03-0911-1036/+0
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Switch to CoordinatorLayout for activity containerHarsh Shandilya2020-03-091-3/+4
| | | | | | Snackbars use it to infer the right margins Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* backend: do not depend on anything except configJason A. Donenfeld2020-03-093-8/+8
| | | | | | | | | This is likely broken but should make for a good starting point. It also should hopefully handle stopping tunnels before starting new ones, in the case of the GoBackend. Again, untested. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Make exclusions dialog fit more items in viewportHarsh Shandilya2020-02-251-3/+5
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Replace FrameLayouts with recommended FragmentContainerViewHarsh Shandilya2020-02-251-7/+3
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Port tunnel creation UI from ViscerionHarsh Shandilya2020-02-142-34/+77
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Implement custom theming to match Google's AOSP designHarsh Shandilya2020-02-128-22/+36
| | | | | Closes: #4 Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Implement statisticsJason A. Donenfeld2019-11-202-0/+19
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelList: Get focus to toggle button via remote for Fire TVRevath S Kumar2019-06-051-1/+5
| | | | | | | | | | | | | | | | | | | | | | This removes a no-longer-needed workaround for the ListView OnItemClickListener (it won't fire if a focusable view is inside the item view). Since converting our ListView instances to RecyclerView instances, we set the OnClick and OnLongClick listeners directly on the item view, and this workaround no longer has any effect. Unsurprisingly, the workaround breaks focusability of the Switch, which is necessary to toggle tunnels on devices with keypad-based navigation, such as the Fire TV. This commit also adds explicit focusability hints for the Switch. Related mail thread: https://lists.zx2c4.com/pipermail/wireguard/2019-May/004112.html Reported-by: Christophe-Marie Duquesne <chmd@chmd.fr> Reported-by: Revath S Kumar <gmail@revathskumar.com> [Samuel: sorted attributes; expanded commit message] Signed-off-by: Samuel Holland <samuel@sholland.org>
* Migrate to AndroidXHarsh Shandilya2018-12-187-18/+18
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Clean up error messagesSamuel Holland2018-12-151-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Remodel the ModelSamuel Holland2018-12-085-28/+28
| | | | | | | | | | | | | | - The configuration and crypto model is now entirely independent of Android classes other than Nullable and TextUtils. - Model classes are immutable and use builders that enforce the appropriate optional/required attributes. - The Android config proxies (for Parcelable and databinding) are moved to the Android side of the codebase, and are designed to be safe for two-way databinding. This allows proper observability in TunnelDetailFragment. - Various robustness fixes and documentation updates to helper classes. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Auto-format the source directoriesSamuel Holland2018-11-116-29/+32
| | | | | | Blame Jason for writing Java in vim. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Style: use attrs from appcompat rather than from frameworksJason A. Donenfeld2018-07-301-1/+1
| | | | | | | This isn't possible for colorForeground, colorBackground, textAppearanceMedium, but at least it's useful for some things here. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Show different color for multiselectionJason A. Donenfeld2018-07-301-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Replace hard-coded colors with theme colorsJason A. Donenfeld2018-07-302-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Remove placeholder color and directly use alphaHarsh Shandilya2018-07-301-1/+1
| | | | | | Why wasn't this done like this in the first place? Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ConfigNamingDialog: use name input filterJason A. Donenfeld2018-07-291-2/+9
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* MainActivity: Fix fragment selection logicSamuel Holland2018-07-281-2/+14
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* qrcode: minor adjustmentsJason A. Donenfeld2018-07-251-10/+10
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Added QR code scanner as tunnel import methodEric Kuck2018-07-252-21/+56
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Make placeholder prettyJason A. Donenfeld2018-07-231-5/+15
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Show help text when no tunnels are importedHarsh Shandilya2018-07-221-0/+14
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* RTL layout fixesHarsh Shandilya2018-07-223-4/+2
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* fab: move in direct ratio to scrollJason A. Donenfeld2018-07-201-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* fab: make icons always whiteJason A. Donenfeld2018-07-201-2/+2
| | | | | | | | With the new shade of blue, perhaps this simply looks better. I don't like hard coding the color away from the theme, however. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* fab: add fab sized padding at bottom of recycler viewJason A. Donenfeld2018-07-181-0/+2
| | | | | | | This way we can keep scrolling when there are exactly the right number of items, so that the toggle switch becomes visible. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* fab: make fab respond to recyclerview scroll eventsHarsh Shandilya2018-07-181-1/+1
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* fab: slide fab up when a snackbar showsHarsh Shandilya2018-07-181-1/+2
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* TunnelEditorFragment: add DNSes to allowedIPs when excluding rfc1918Jason A. Donenfeld2018-07-121-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* fab: use support library's renderingEric Kuck2018-07-111-10/+11
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Request VPN permissions on activationEric Kuck2018-07-092-6/+10
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Switch from ListView to RecyclerViewEric Kuck2018-07-081-2/+7
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* PeerEditor: put exclusion checkbox next to labelJason A. Donenfeld2018-07-061-11/+13
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* PeerEditor: add exclude private IPs functionalityJason A. Donenfeld2018-07-061-1/+12
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelEditor: fix nitsJason A. Donenfeld2018-07-061-1/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* AppListDialogFragment: add implementation for excluding applicationsEric Kuck2018-07-063-0/+112
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* TunnelEditor: better looking buttonsJason A. Donenfeld2018-07-061-0/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: fix theme situation and clean up cruft while adding more cruftJason A. Donenfeld2018-06-012-3/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* FloatingActionButton: import cleaned up getbase codeJason A. Donenfeld2018-05-291-4/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* theme: revert to old color schemeJason A. Donenfeld2018-05-091-6/+0
| | | | | | Noble effort, but ultimately ugly. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* styles: Propagate WireGuard red in UIHarsh Shandilya2018-05-051-0/+6
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: Use a proper CardView based layoutHarsh Shandilya2018-05-034-386/+411
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* global: Automatic code formattingSamuel Holland2018-04-301-1/+1
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* wg: Break out crossport dependencyHarsh Shandilya2018-04-302-4/+4
| | | | | | | Replace all crossport uses with upstream design support library components. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Use validation instead of two-way bindingJason A. Donenfeld2018-04-284-28/+42
| | | | | | | | | | | | | | 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. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* More javaficationJason A. Donenfeld2018-04-183-5/+6
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Remove sloppy java with enterprise java horrorsJason A. Donenfeld2018-04-173-4/+4
| | | | | | | Since the amount of mind numbing boiler plate has been increased, this must be the proper way to do things. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: Fix or suppress most lints/warningsSamuel Holland2018-01-081-1/+3
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* layout: never use suggestionsJason A. Donenfeld2018-01-092-8/+8
| | | | | | | | | IP addresses and key material could be potentially sensitive. We also don't want any interactions with the suggestive text APIs. So, we mark it as both a visible password and we turn off suggestions. This will fix the length limit, too, in Android 8. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>