This commit is contained in:
@@ -217,6 +217,7 @@ class CredentialStore(context: Context) {
|
||||
put("name", p.name)
|
||||
put("type", p.type)
|
||||
put("profileType", p.profileType)
|
||||
put("autoActivated", p.autoActivated)
|
||||
})
|
||||
prefs.edit().putString("bml_${loginId}_profiles", arr.toString()).apply()
|
||||
}
|
||||
@@ -228,10 +229,11 @@ class CredentialStore(context: Context) {
|
||||
(0 until arr.length()).map { i ->
|
||||
val o = arr.getJSONObject(i)
|
||||
BmlProfile(
|
||||
profileId = o.optString("profileId"),
|
||||
name = o.optString("name"),
|
||||
type = o.optString("type"),
|
||||
profileType = o.optString("profileType", "default")
|
||||
profileId = o.optString("profileId"),
|
||||
name = o.optString("name"),
|
||||
type = o.optString("type"),
|
||||
profileType = o.optString("profileType", "default"),
|
||||
autoActivated = o.optBoolean("autoActivated", false)
|
||||
)
|
||||
}
|
||||
} catch (_: Exception) { emptyList() }
|
||||
|
||||
Reference in New Issue
Block a user