1.0.1
Released version 1.0.1.
- The lifecycle related to
lifecycleAwarefunctionalities receives the parameter as applied.
So we can omit theitreceiver.
Before
private val balloon: Balloon by lifecycleAware { BalloonUtils.getProfileBalloon(baseContext) }
.onCreate { it.showAlignTop(button) }
.onDestroy { it.dismiss() }
.lazy()After
private val balloon: Balloon by lifecycleAware { BalloonUtils.getProfileBalloon(baseContext) }
.onCreate { showAlignTop(button) }
.onDestroy { dismiss() }
.lazy()- Implemented LifecycleAwareProperty's kotlin dsl way for observing.
private val lifecycleAwareProperty = lifecycleAware(getDarkThemeDialog())
.observe {
onCreate { show() }
onResume { restart() }
onDestroy { dismiss() }
}