Watch service leaks

This commit is contained in:
M66B
2022-05-02 10:15:29 +02:00
parent 358bbaad84
commit 149539afec
8 changed files with 23 additions and 0 deletions

View File

@@ -84,4 +84,10 @@ public class ServiceTileSynchronize extends TileService implements SharedPrefere
boolean enabled = !prefs.getBoolean("enabled", true);
prefs.edit().putBoolean("enabled", enabled).apply();
}
@Override
public void onDestroy() {
super.onDestroy();
CoalMine.watch(this, this.getClass().getName() + "#onDestroy");
}
}