cmd/tailscale: don't use TileService if not supported

Bump version code for release.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
pull/3/head v0.1.14
Elias Naur 4 years ago
parent cbde34f13b
commit 6265d84c36

@ -25,7 +25,7 @@ android {
defaultConfig { defaultConfig {
minSdkVersion 23 minSdkVersion 23
targetSdkVersion 29 targetSdkVersion 29
versionCode 13 versionCode 14
versionName System.getenv("VERSION") versionName System.getenv("VERSION")
} }
compileOptions { compileOptions {

@ -84,6 +84,9 @@ public class App extends Application {
} }
void setTileStatus(boolean wantRunning) { void setTileStatus(boolean wantRunning) {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
return;
}
QuickToggleService.setStatus(this, wantRunning); QuickToggleService.setStatus(this, wantRunning);
} }

Loading…
Cancel
Save