fix "always need to unlock gesture pattern when changing library" error

Though the error was fixed, there still left another serious problem here, which damages user experience.

After set up Gesture Lock, it cannot restore its checked state, so every time resume back to Settings menu, the Gesture Lock checkbox was always unchecked.

This bug will be fixed in next PR.
这几行都应该封装到 SettingsManager, 然后在这里调用`settingsManager.allowCameraUploadWithMobileConnection()`。有一个原则就是：除了 SettingsManager, 其他类不应该直接调用 `getDefaultSharedPreferences`， 而是通过  SettingsManager 的接口来读、写 preference.