mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-13 12:38:52 -06:00
Improvement - No need for additional button creation if data is unchanged
This commit is contained in:
@@ -36,12 +36,14 @@ abstract class ButtonPanelView<T : View>(
|
||||
|
||||
var buttonCount = 0
|
||||
set(value) {
|
||||
if (field == value) return
|
||||
field = value
|
||||
inflateButtons()
|
||||
}
|
||||
|
||||
var dataOffset = 0
|
||||
set(value) {
|
||||
if (field == value) return
|
||||
field = value
|
||||
setupButtons()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user