mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 618537 - Android - broadcast memory-pressure from onStop. r=mwu a=blocking-fennec
This commit is contained in:
parent
ba1d10c471
commit
1f7548f709
@ -234,7 +234,11 @@ nsAppShell::ProcessNextNativeEvent(PRBool mayWait)
|
||||
break;
|
||||
|
||||
case AndroidGeckoEvent::ACTIVITY_STOPPING: {
|
||||
// Do nothing yet.
|
||||
nsCOMPtr<nsIObserverService> obsServ =
|
||||
mozilla::services::GetObserverService();
|
||||
NS_NAMED_LITERAL_STRING(minimize, "heap-minimize");
|
||||
obsServ->NotifyObservers(nsnull, "memory-pressure", minimize.get());
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user