Merge branch '1215-disable-low-memory-shutdowns' into 'master'

Disable low memory shutdowns

See merge request akwizgran/briar!782
This commit is contained in:
Torsten Grote
2018-04-30 13:43:17 +00:00

View File

@@ -221,8 +221,6 @@ public class BriarService extends Service {
public void onLowMemory() {
super.onLowMemory();
LOG.warning("Memory is low");
shutdownFromBackground();
showLowMemoryShutdownNotification();
}
private void shutdownFromBackground() {
@@ -247,6 +245,7 @@ public class BriarService extends Service {
}).start();
}
// TODO: Remove if low memory shutdowns are not appropriate
private void showLowMemoryShutdownNotification() {
androidExecutor.runOnUiThread(() -> {
NotificationCompat.Builder b = new NotificationCompat.Builder(