Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ If you installed Android Studio the tools may not be in your path. To get the
correct tool path, run `make androidpath` and export the provided path in your
shell.

You will also need to run `make llibtailscale` to build the Tailscale AAR which is required to build the Android app.

#### Code Formatting

The ktmft plugin on the default setting should be used to autoformat all Java, Kotlin
Expand Down
1 change: 1 addition & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ android {
buildConfigField "String", "GITHUB_2FA_SECRET", "\"" + getLocalProperty("github2FASecret", "")+"\""
}
debug {
applicationIdSuffix ".debug"
manifestPlaceholders.leanbackRequired = false
}
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ private void onTileClick() {
if (needsToStop) {
app.stopVPN();
} else {
app.stopVPN();
app.startVPN();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@ class MainViewModel(private val appViewModel: AppViewModel) : IpnViewModel() {
val currentState = Notifier.state.value

if (desiredState) {
if (currentState != Ipn.State.Stopped) {
stopVPN()
}

// User wants to turn ON the VPN
when {
currentState != Ipn.State.Running -> startVPN()
Expand Down