diff options
author | Chuanxiao Dong <chuanxiao.dong@intel.com> | 2012-07-24 13:09:24 +0800 |
---|---|---|
committer | Xiaokang Qin <xiaokang.qin@intel.com> | 2012-08-10 10:49:45 +0800 |
commit | 66e7f0a3935f7d0162a52bf65905c2904a65c2f1 (patch) | |
tree | 273acefa424b750cf6893c82e964f9ff21bbbe1f /src/com/android | |
parent | 5d72b2726797374e402943182d8132045ed32d3a (diff) | |
download | packages_apps_settings-66e7f0a3935f7d0162a52bf65905c2904a65c2f1.zip packages_apps_settings-66e7f0a3935f7d0162a52bf65905c2904a65c2f1.tar.gz packages_apps_settings-66e7f0a3935f7d0162a52bf65905c2904a65c2f1.tar.bz2 |
Fix the issue the setting crashes after unmount SD card in landscape
When rotate the phone, mLastClickedMountToggle and mClickedMountPoint
would be destroied which made dialog access NULL pointer.
Change-Id: Ic96fce93828ca7a6f8749fad6a258eb47831e062
Author: Chuanxiao Dong <chuanxiao.dong@intel.com>
Signed-off-by: Xiaokang Qin <xiaokang.qin@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 26569
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/settings/deviceinfo/Memory.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/settings/deviceinfo/Memory.java b/src/com/android/settings/deviceinfo/Memory.java index cb344bf..cabc6e9 100644 --- a/src/com/android/settings/deviceinfo/Memory.java +++ b/src/com/android/settings/deviceinfo/Memory.java @@ -57,8 +57,8 @@ public class Memory extends SettingsPreferenceFragment { // The mountToggle Preference that has last been clicked. // Assumes no two successive unmount event on 2 different volumes are performed before the first // one's preference is disabled - private Preference mLastClickedMountToggle; - private String mClickedMountPoint; + private static Preference mLastClickedMountToggle; + private static String mClickedMountPoint; // Access using getMountService() private IMountService mMountService = null; |