summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorChuanxiao Dong <chuanxiao.dong@intel.com>2012-07-24 13:09:24 +0800
committerXiaokang Qin <xiaokang.qin@intel.com>2012-08-10 10:49:45 +0800
commit66e7f0a3935f7d0162a52bf65905c2904a65c2f1 (patch)
tree273acefa424b750cf6893c82e964f9ff21bbbe1f /src/com/android
parent5d72b2726797374e402943182d8132045ed32d3a (diff)
downloadpackages_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.java4
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;