Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66e7f0a3 authored by Chuanxiao Dong's avatar Chuanxiao Dong Committed by Xiaokang Qin
Browse files

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: default avatarXiaokang Qin <xiaokang.qin@intel.com>
Signed-off-by: default avatarBruce Beare <bruce.j.beare@intel.com>
Signed-off-by: default avatarJack Ren <jack.ren@intel.com>
Author-tracking-BZ: 26569
parent 5d72b272
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;