Skip to content
Snippets Groups Projects
Verified Commit ed535442 authored by akwizgran's avatar akwizgran
Browse files

Clear the UI in onLowMemory() if SDK_INT < 16.

parent 6da45a45
No related branches found
No related tags found
No related merge requests found
......@@ -217,6 +217,14 @@ public class BriarService extends Service {
}).start();
}
@Override
public void onLowMemory() {
super.onLowMemory();
LOG.warning("Memory is low");
// Clear the UI - this is done in onTrimMemory() if SDK_INT >= 16
if (SDK_INT < 16) hideUi();
}
@Override
public void onTrimMemory(int level) {
super.onTrimMemory(level);
......
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