Skip to content

Commit

Permalink
This seems to fix udacity#32
Browse files Browse the repository at this point in the history
Symbol changes are not saving correctly to disk SharedPreferences.
  • Loading branch information
bumxu authored Apr 3, 2017
1 parent e06cfc3 commit 18efd57
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static Set<String> getStocks(Context context) {

private static void editStockPref(Context context, String symbol, Boolean add) {
String key = context.getString(R.string.pref_stocks_key);
Set<String> stocks = getStocks(context);
Set<String> stocks = new HashSet<>(getStocks(context));

if (add) {
stocks.add(symbol);
Expand Down

0 comments on commit 18efd57

Please sign in to comment.