mirror of
https://github.com/wgtunnel/android.git
synced 2026-07-03 14:07:49 +02:00
fix: ui bug and graphene notification
Fixes a bug where save button was hidden on config screen Adds a disclaimer notification for when GrapheneOS auto enabled Always-on VPN on first app tunnel start Closes #121 #120
This commit is contained in:
@@ -18,7 +18,7 @@ object Queries {
|
||||
VALUES
|
||||
('false',
|
||||
'false',
|
||||
'[trustedSSID1,trustedSSID2]',
|
||||
'sampleSSID1,sampleSSID2',
|
||||
NULL,
|
||||
'false',
|
||||
'false',
|
||||
|
||||
+7
@@ -84,6 +84,8 @@ class WireGuardTunnelService : ForegroundService() {
|
||||
tunnelName = tunnel.name
|
||||
vpnService.startTunnel(tunnel)
|
||||
}
|
||||
} else {
|
||||
launchAlwaysOnDisabledNotification()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -116,6 +118,11 @@ class WireGuardTunnelService : ForegroundService() {
|
||||
}
|
||||
}
|
||||
|
||||
private fun launchAlwaysOnDisabledNotification() {
|
||||
launchVpnNotification(title = this.getString(R.string.vpn_connection_failed),
|
||||
description = this.getString(R.string.always_on_disabled))
|
||||
}
|
||||
|
||||
override fun stopService(extras: Bundle?) {
|
||||
super.stopService(extras)
|
||||
lifecycleScope.launch(Dispatchers.IO) {
|
||||
|
||||
+1
-1
@@ -311,7 +311,7 @@ fun ConfigScreen(
|
||||
var fobColor by remember { mutableStateOf(secondaryColor) }
|
||||
FloatingActionButton(
|
||||
modifier =
|
||||
Modifier.onFocusChanged {
|
||||
Modifier.padding(bottom = 90.dp).onFocusChanged {
|
||||
if (WireGuardAutoTunnel.isRunningOnAndroidTv()) {
|
||||
fobColor = if (it.isFocused) hoverColor else secondaryColor
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user