Skip to content
Snippets Groups Projects
Commit 8e814e1b authored by Torsten Grote's avatar Torsten Grote
Browse files

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

Disable low memory shutdowns

See merge request akwizgran/briar!782
parents c1b8552c 5d1a4acd
No related branches found
No related tags found
No related merge requests found
...@@ -221,8 +221,6 @@ public class BriarService extends Service { ...@@ -221,8 +221,6 @@ public class BriarService extends Service {
public void onLowMemory() { public void onLowMemory() {
super.onLowMemory(); super.onLowMemory();
LOG.warning("Memory is low"); LOG.warning("Memory is low");
shutdownFromBackground();
showLowMemoryShutdownNotification();
} }
private void shutdownFromBackground() { private void shutdownFromBackground() {
...@@ -247,6 +245,7 @@ public class BriarService extends Service { ...@@ -247,6 +245,7 @@ public class BriarService extends Service {
}).start(); }).start();
} }
// TODO: Remove if low memory shutdowns are not appropriate
private void showLowMemoryShutdownNotification() { private void showLowMemoryShutdownNotification() {
androidExecutor.runOnUiThread(() -> { androidExecutor.runOnUiThread(() -> {
NotificationCompat.Builder b = new NotificationCompat.Builder( NotificationCompat.Builder b = new NotificationCompat.Builder(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment