summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java/com/wireguard
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-11-27 00:43:34 +0100
committerSamuel Holland <samuel@sholland.org>2017-11-27 00:43:34 +0100
commit9ee2c6e398d50ae0e177dac640087271a72b2e63 (patch)
tree1981f9b17d90ca89186856ac8b615db7a2ad98c3 /app/src/main/java/com/wireguard
parentd99545fac0030da66d8639cafb527961675f9ace (diff)
QuickTileService: show app if no profiles exist
Diffstat (limited to 'app/src/main/java/com/wireguard')
-rw-r--r--app/src/main/java/com/wireguard/android/QuickTileService.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/src/main/java/com/wireguard/android/QuickTileService.java b/app/src/main/java/com/wireguard/android/QuickTileService.java
index 9f97c6c4..31ebe568 100644
--- a/app/src/main/java/com/wireguard/android/QuickTileService.java
+++ b/app/src/main/java/com/wireguard/android/QuickTileService.java
@@ -29,6 +29,8 @@ public class QuickTileService extends TileService {
service.disable(config.getName());
else
service.enable(config.getName());
+ } else {
+ startActivityAndCollapse(new Intent(this, ConfigActivity.class));
}
}
@@ -60,8 +62,8 @@ public class QuickTileService extends TileService {
}
} else {
tile.setIcon(Icon.createWithResource(this, R.drawable.ic_tile_disabled));
- tile.setLabel(getString(R.string.loading));
- tile.setState(Tile.STATE_UNAVAILABLE);
+ tile.setLabel(getString(R.string.app_name));
+ tile.setState(Tile.STATE_INACTIVE);
}
tile.updateTile();
}