Froyo doesn't support SharedPreferences.Editor.apply(). Need to use commit() instead.

This commit is contained in:
Kevin Ruland 2012-07-19 14:38:53 +00:00
parent 425612afd4
commit 4d7a585ca7

View File

@ -278,7 +278,7 @@ public class SimpleFileBrowser extends SherlockListActivity {
if ( v.isSelected() == false ) {
SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(SimpleFileBrowser.this);
baseDirName = dirname;
pref.edit().putString(baseDirPrefKey, dirname).apply();
pref.edit().putString(baseDirPrefKey, dirname).commit();
((BaseAdapter)SimpleFileBrowser.this.getListAdapter()).notifyDataSetChanged();
}
}