From 2ece604dc3d5713f82f227843b7beebd254edbb1 Mon Sep 17 00:00:00 2001 From: RichyHBM Date: Tue, 14 Nov 2017 19:22:26 +0000 Subject: [PATCH] Wrap settings StringSet in new object to allow modification --- .../java/org/shadowice/flocke/andotp/Utilities/Settings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/shadowice/flocke/andotp/Utilities/Settings.java b/app/src/main/java/org/shadowice/flocke/andotp/Utilities/Settings.java index 709ca2f5..b781d493 100644 --- a/app/src/main/java/org/shadowice/flocke/andotp/Utilities/Settings.java +++ b/app/src/main/java/org/shadowice/flocke/andotp/Utilities/Settings.java @@ -126,7 +126,7 @@ public class Settings { } private Set getStringSet(int keyId, Set defaultValue) { - return settings.getStringSet(getResString(keyId), defaultValue); + return new HashSet(settings.getStringSet(getResString(keyId), defaultValue)); } private void setBoolean(int keyId, boolean value) {