summaryrefslogtreecommitdiffstats
path: root/core/java/android/content/Context.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-12-07 23:51:29 -0800
committerDianne Hackborn <hackbod@google.com>2010-12-08 00:35:27 -0800
commit0aae2d4e0075fd699cf40b26dca0eb2c3b3e37d2 (patch)
tree04686805aa8c15025416aac0da1efc95149385a0 /core/java/android/content/Context.java
parent0b38aa0f971f58ac96ebb331463ba2087af7b724 (diff)
downloadframeworks_base-0aae2d4e0075fd699cf40b26dca0eb2c3b3e37d2.zip
frameworks_base-0aae2d4e0075fd699cf40b26dca0eb2c3b3e37d2.tar.gz
frameworks_base-0aae2d4e0075fd699cf40b26dca0eb2c3b3e37d2.tar.bz2
Rework activity lifecycle so onSaveInstanceState() is after onPause().
The goal is to fix a bunch of fragment-related bugs caused by various things trying to do fragment transactions after onPause()... which currently throws an exception, since this is after the activity's state has been saved so the new fragment state can be lost. The basic change is relatively simple -- we now consider processes hosting paused or stopping activities to be unkillable, and the client code now does the onSaveInstanceState() as part of stopping the activity. For compatibility, if an app's targetSdkVersion is < HONEYCOMB, the client side will still call onSaveInstanceState() prior to onPause() and just hold on to that state until it needs to report it in once being stopped. Also included here is a change to generate thumbnails by taking screenshots. The code for generating thumbnails by re-rendering the view hierarchy is thus removed. Change-Id: Iac1191646bd3cadbfe65779297795f22edf7e74a
Diffstat (limited to 'core/java/android/content/Context.java')
0 files changed, 0 insertions, 0 deletions