From 66e7f0a3935f7d0162a52bf65905c2904a65c2f1 Mon Sep 17 00:00:00 2001 From: Chuanxiao Dong Date: Tue, 24 Jul 2012 13:09:24 +0800 Subject: [PATCH] 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 Signed-off-by: Xiaokang Qin Signed-off-by: Bruce Beare Signed-off-by: Jack Ren Author-tracking-BZ: 26569 --- src/com/android/settings/deviceinfo/Memory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/settings/deviceinfo/Memory.java b/src/com/android/settings/deviceinfo/Memory.java index cb344bf23d1..cabc6e9f6c5 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;