summaryrefslogtreecommitdiffhomepage
path: root/android/src
AgeCommit message (Collapse)AuthorFilesLines
2021-04-23Refactor to centralize handling of service conn.Janito Vaqueiro Ferreira Filho1-11/+13
2021-04-23Configure class loaders for received messagesJanito Vaqueiro Ferreira Filho1-0/+2
2021-04-23Remove daemon instance from service connectionJanito Vaqueiro Ferreira Filho4-10/+4
2021-04-23Add `StringRes` annotation to `urlId`Janito Vaqueiro Ferreira Filho1-1/+2
2021-04-23Select `TVActivity` class when running on TVsJanito Vaqueiro Ferreira Filho1-1/+16
2021-04-22Remove starting activity while asking to connectJanito Vaqueiro Ferreira Filho2-22/+0
This was previously used to force requesting the VPN permission, but the mechanism has become unnecessary.
2021-04-22Request for VPN permission when service asks toJanito Vaqueiro Ferreira Filho1-1/+3
2021-04-22Refactor `requestVpnPermission` to obtain `Intent`Janito Vaqueiro Ferreira Filho1-5/+8
2021-04-22Send initial VPN request when UI connectsJanito Vaqueiro Ferreira Filho1-1/+5
2021-04-22Keep track of when waiting for permission responseJanito Vaqueiro Ferreira Filho1-0/+5
2021-04-22Send requests from service side `VpnPermission`Janito Vaqueiro Ferreira Filho1-1/+3
2021-04-22Update UI side `VpnPermission` to receive requestsJanito Vaqueiro Ferreira Filho2-2/+12
2021-04-22Add `Event.VpnPermissionRequest` variantJanito Vaqueiro Ferreira Filho1-0/+3
2021-04-22Use `VoucherRedeemer` in redeem voucher fragmentJanito Vaqueiro Ferreira Filho1-13/+8
2021-04-22Add `VoucherRedeemer` to `ServiceConnection`Janito Vaqueiro Ferreira Filho1-0/+2
2021-04-22Remove leftover ID code in redeem voucher fragmentJanito Vaqueiro Ferreira Filho1-5/+0
2021-04-22Create UI side `VoucherRedeemer`Janito Vaqueiro Ferreira Filho1-0/+43
2021-04-22Instantiate `VoucherRedeemer` in endpointJanito Vaqueiro Ferreira Filho1-0/+2
2021-04-22Create service side `VoucherRedeemer`Janito Vaqueiro Ferreira Filho1-0/+40
2021-04-22Implement voucher submission messagesJanito Vaqueiro Ferreira Filho2-0/+10
2021-04-22Make `VoucherSubmissionResult` parcelableJanito Vaqueiro Ferreira Filho2-7/+23
2021-04-22Force fragment reconfiguration on new connectionJanito Vaqueiro Ferreira Filho1-0/+4
2021-04-22Update Android TV bannerAleksandr Granin1-0/+0
2021-04-22Remove constructor parameter property statusJanito Vaqueiro Ferreira Filho1-1/+1
2021-04-22Make some constructor parameter properties privateJanito Vaqueiro Ferreira Filho8-9/+9
2021-04-22Update `AppModule` to use `EventDispatcher`Janito Vaqueiro Ferreira Filho1-3/+2
2021-04-22Update `SplitTunneling` to use `EventDispatcher`Janito Vaqueiro Ferreira Filho1-5/+2
2021-04-22Use new `EventDispatcher` type aliasJanito Vaqueiro Ferreira Filho8-16/+16
2021-04-22Create an `EventDispatcher` type aliasJanito Vaqueiro Ferreira Filho1-0/+2
2021-04-21Make `dispatcher` property privateJanito Vaqueiro Ferreira Filho1-4/+4
2021-04-21Refactor to create a helper methodJanito Vaqueiro Ferreira Filho1-3/+5
The main purpose is to reduce the amount of closures and indentation to make the code more readable.
2021-04-21Ensure `ListenerReady` handler is registered firstJanito Vaqueiro Ferreira Filho2-11/+13
Previously there could be a race condition because the `ServiceConnection` constructor would register itself as an event listener on the service without registering a handler for the `ListenerReady` event sent after the registration is complete. The `MainActivity` would then register the handler, and things would work because the service would send multiple events before sending the `ListenerReady`, giving time for the handler to be registered before the event is received. This commit changes that in order to avoid the race condition. Now the `ServiceConnection` constructor must receive a callback as a parameter, and this callback will be used when registering for the `ListenerReady` event. This allows the constructor to enforce that the handler for the event is configured before the request for registration is sent.
2021-04-21Don't use daemon in `PreferencesFragment`Janito Vaqueiro Ferreira Filho1-4/+4
2021-04-21Allow setting Auto-Connect through connectionJanito Vaqueiro Ferreira Filho3-0/+13
2021-04-21Allow setting Allow LAN through service connectionJanito Vaqueiro Ferreira Filho3-0/+13
2021-04-21Change `SelectLocationFragment` to not use daemonJanito Vaqueiro Ferreira Filho1-12/+1
2021-04-21Allow sending updated relay location from UIJanito Vaqueiro Ferreira Filho2-1/+16
2021-04-21Set relay location using `RelayListListener`Janito Vaqueiro Ferreira Filho1-1/+50
2021-04-21Add `SetRelayLocation` request variantJanito Vaqueiro Ferreira Filho1-0/+4
2021-04-21Send requests to set WireGuard MTUJanito Vaqueiro Ferreira Filho2-5/+5
2021-04-21Allow to set WireGuard MTU with `SettingsListener`Janito Vaqueiro Ferreira Filho1-0/+31
2021-04-21Create request variant for setting WireGuard MTUJanito Vaqueiro Ferreira Filho1-0/+3
2021-04-21Allow setting account with a request from UI sideJanito Vaqueiro Ferreira Filho4-2/+19
2021-04-20Send `null` `LoginStatus` event if login failsJanito Vaqueiro Ferreira Filho1-7/+16
2021-04-20Don't ignore login request for current accountJanito Vaqueiro Ferreira Filho1-4/+0
This was an optimization, but it meant that no event would be sent back to the UI, which could lead to unexpected bugs.
2021-04-20Cancel jobs when destroying `NotificationBanner`Janito Vaqueiro Ferreira Filho1-0/+1
2021-04-20Use `AuthTokenCache` in `UrlButton`Janito Vaqueiro Ferreira Filho5-10/+10
2021-04-20Use `AuthTokenCache` in in-app notificationsJanito Vaqueiro Ferreira Filho4-11/+11
2021-04-20Make `AuthTokenCache` available to fragmentsJanito Vaqueiro Ferreira Filho2-0/+7
2021-04-20Create UI side `AuthTokenCache` helper classJanito Vaqueiro Ferreira Filho1-0/+42