Merge pull request #1180 from alexbakker/fix-tile-crash

Check for null returned by getQsTile()
pull/1182/head
Michael Schättgen 2 years ago committed by GitHub
commit 72511fc02b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,9 +16,11 @@ public class LaunchAppTileService extends TileService {
public void onStartListening() {
super.onStartListening();
Tile tile = getQsTile();
if (tile != null) {
tile.setState(Tile.STATE_INACTIVE);
tile.updateTile();
}
}
@Override
public void onClick() {

@ -16,9 +16,11 @@ public class LaunchScannerTileService extends TileService {
public void onStartListening() {
super.onStartListening();
Tile tile = getQsTile();
if (tile != null) {
tile.setState(Tile.STATE_INACTIVE);
tile.updateTile();
}
}
@Override
public void onClick() {

Loading…
Cancel
Save