140620

I would suggest creating a Settings class with methods like "isSwipeEnabled", 'setSwipeEnabled", etc. And use it here instead of directly accessing PreferenceManager. You could use it also in the SettingsActivity and other places.

Additional consideration point is to not tie activities. There is no need for this fragment to know about existence of the SettingsActivity. A couple of lines above you refer to it to query one of the prefs. If you create a Settings class, you would break the dependency. Also, not directly applicable here, but sometimes you can create a Constants class and use it in multiple places. It's considered a slightly better practice than referencing another Activity