Browse Source

use local context

tobiasKaminsky 9 years ago
parent
commit
be2ee2fd1b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/com/owncloud/android/ui/fragment/ExtendedListFragment.java

+ 1 - 1
src/com/owncloud/android/ui/fragment/ExtendedListFragment.java

@@ -326,7 +326,7 @@ public class ExtendedListFragment extends Fragment
         savedInstanceState.putString(KEY_EMPTY_LIST_MESSAGE, getEmptyViewText());
 
         SharedPreferences.Editor editor = PreferenceManager
-                .getDefaultSharedPreferences(MainApp.getAppContext()).edit();
+                .getDefaultSharedPreferences(getContext()).edit();
         editor.putFloat(GRID_COLUMNS, mScale).apply();
     }