Froyo doesn't support SharedPreferences.Editor.apply(). Need to use commit() instead.
This commit is contained in:
parent
425612afd4
commit
4d7a585ca7
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user