or-dvir / EasySettings

A library for easily creating and adding settings (AKA preferences) to your android app
Apache License 2.0
95 stars 18 forks source link

Index of bound when HeaderSettingsObject is the first element in array #1

Closed katomm closed 6 years ago

katomm commented 6 years ago

Hello,

played around with EasySettings today and I really like it. Found a crash when HeaderSettingsObject is the first element in array. To reproduce use:

mySettingsList = EasySettings.createSettingsArray(
                new HeaderSettingsObject.Builder("this will cause index of bound")
                        .build(),
                new CheckBoxSettingsObject.Builder("checkBoxKey", "checkbox title", false)
                        .setSummary("checkbox summary")
                        .addDivider()
                        .build());
or-dvir commented 6 years ago

thank for for bringing this to my attention. fixed in version 1.1.2!

https://github.com/or-dvir/EasySettings/releases