diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-03-11 13:17:57 -0800 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2011-03-11 13:48:32 -0800 |
commit | cf407ad88bef3bc640489b300f23eaa8ea0b724e (patch) | |
tree | e4690beb12fc2a68a7466a08a0a302fa41b2fdb3 /api | |
parent | 0eb7b697b7c180660647b5cd0cd7dd067f6b6abb (diff) | |
download | frameworks_base-cf407ad88bef3bc640489b300f23eaa8ea0b724e.zip frameworks_base-cf407ad88bef3bc640489b300f23eaa8ea0b724e.tar.gz frameworks_base-cf407ad88bef3bc640489b300f23eaa8ea0b724e.tar.bz2 |
Fix issues #4087362 and #4087356
4087362: Provide a safer way to call DialogFragment.dismiss()
4087356: PreferenceActivity.invalidateHeaders() can cause
IllegalStateException: Can not perform this action after onSaveInstanceState
These are very safe; the first is just a new public API that
allows you to use an existing feature in DialogFragment, and the
second just uses the version of commit that avoids the failure if
happening at a point where the operation would be lost if restored
from the last state (which is no big deal for preferences).
Change-Id: I53971c9fb1efdcd599694cdcd4585b81afc156b8
Diffstat (limited to 'api')
-rw-r--r-- | api/current.xml | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/api/current.xml b/api/current.xml index fb4cdde..5207534 100644 --- a/api/current.xml +++ b/api/current.xml @@ -28643,6 +28643,17 @@ visibility="public" > </method> +<method name="dismissAllowingStateLoss" + return="void" + abstract="false" + native="false" + synchronized="false" + static="false" + final="false" + deprecated="not deprecated" + visibility="public" +> +</method> <method name="getDialog" return="android.app.Dialog" abstract="false" @@ -267031,7 +267042,7 @@ deprecated="not deprecated" visibility="public" > -<parameter name="t" type="T"> +<parameter name="arg0" type="T"> </parameter> </method> </interface> |