mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 13:19:52 +01:00
Clear the UI in onLowMemory() if SDK_INT < 16.
This commit is contained in:
@@ -217,6 +217,14 @@ public class BriarService extends Service {
|
|||||||
}).start();
|
}).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
|
@Override
|
||||||
public void onTrimMemory(int level) {
|
public void onTrimMemory(int level) {
|
||||||
super.onTrimMemory(level);
|
super.onTrimMemory(level);
|
||||||
|
|||||||
Reference in New Issue
Block a user