diff options
| author | Fred Quintana <fredq@google.com> | 2010-03-25 10:47:35 -0700 |
|---|---|---|
| committer | Fred Quintana <fredq@google.com> | 2010-03-25 10:47:35 -0700 |
| commit | af112b0b512d2382407a264d0b8e0074ba407324 (patch) | |
| tree | 0734073d2edee56aea8e64a0528f1bafcae0e701 /apps/Development/src/com/android | |
| parent | 3bf043f9cdbb9e9c215137d0676dde10991d3948 (diff) | |
| download | android_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')
| -rw-r--r-- | apps/Development/src/com/android/development/AccountsTester.java | 8 |
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) { |
