summaryrefslogtreecommitdiffstats
path: root/apps/Development/src/com/android/development
diff options
context:
space:
mode:
authorFred Quintana <fredq@google.com>2010-03-25 10:47:35 -0700
committerFred Quintana <fredq@google.com>2010-03-25 10:47:35 -0700
commitaf112b0b512d2382407a264d0b8e0074ba407324 (patch)
tree0734073d2edee56aea8e64a0528f1bafcae0e701 /apps/Development/src/com/android/development
parent3bf043f9cdbb9e9c215137d0676dde10991d3948 (diff)
downloadandroid_development-af112b0b512d2382407a264d0b8e0074ba407324.tar.gz
android_development-af112b0b512d2382407a264d0b8e0074ba407324.tar.bz2
android_development-af112b0b512d2382407a264d0b8e0074ba407324.zip
need to save the mLongPressedAccount in the instance data
Change-Id: I10458dcc4c539efa64b620ba998b09c14cead28e http://b/issue?id=2527346
Diffstat (limited to 'apps/Development/src/com/android/development')
-rw-r--r--apps/Development/src/com/android/development/AccountsTester.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/Development/src/com/android/development/AccountsTester.java b/apps/Development/src/com/android/development/AccountsTester.java
index ba0622df4..f8ff73683 100644
--- a/apps/Development/src/com/android/development/AccountsTester.java
+++ b/apps/Development/src/com/android/development/AccountsTester.java
@@ -221,6 +221,14 @@ public class AccountsTester extends Activity implements OnAccountsUpdateListener
mLongPressedAccount = holder.account;
}
+ protected void onSaveInstanceState(Bundle outState) {
+ outState.putParcelable("account", mLongPressedAccount);
+ }
+
+ protected void onRestoreInstanceState(Bundle savedInstanceState) {
+ mLongPressedAccount = savedInstanceState.getParcelable("account");
+ }
+
@Override
public boolean onContextItemSelected(MenuItem item) {
if (item.getItemId() == R.id.accounts_tester_remove_account) {