Some battery improvements:

- New API for iterating over history that will allow a better implementation
  in the future.
- Now do writes asynchronously.

Also improve the documentation for Activity.onRetainNonInstanceState().

Change-Id: Idf67f2796a8868eb62f288bcbb2bad29876c8554
This commit is contained in:
Dianne Hackborn
2010-09-20 11:39:14 -07:00
parent 8544560ccc
commit ce2ef766ca
5 changed files with 107 additions and 20 deletions

View File

@@ -8316,6 +8316,11 @@ public class WindowManagerService extends IWindowManager.Stub
return;
}
if (mDisplay == null) {
// Not yet initialized, nothing to do.
return;
}
boolean recoveringMemory = false;
if (mForceRemoves != null) {
recoveringMemory = true;