Skip to content

Commit df01052

Browse files
committed
Refine
1 parent c7aa5d1 commit df01052

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/kotlin/com/w2sv/autocrop/activities/main/fragments/flowfield/views/FlowFieldDrawerLayout.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ import com.w2sv.autocrop.databinding.FlowfieldBinding
1111

1212
class FlowFieldDrawerLayout(context: Context, attributeSet: AttributeSet) : DrawerLayout(context, attributeSet) {
1313

14-
private val binding: FlowfieldBinding by lazy { findFragment<FlowFieldFragment>().binding }
15-
1614
override fun onAttachedToWindow() {
1715
super.onAttachedToWindow()
1816

1917
if (!isInEditMode) {
18+
val binding: FlowfieldBinding by lazy { findFragment<FlowFieldFragment>().binding }
19+
2020
addDrawerListener(
2121
object : SimpleDrawerListener() {
2222
override fun onDrawerSlide(drawerView: View, slideOffset: Float) {

0 commit comments

Comments
 (0)