1
1
package com.harunbekcan.sampleandroidproject.utils
2
2
3
- import android.content.DialogInterface
4
3
import android.os.Bundle
5
4
import android.view.LayoutInflater
6
5
import android.view.View
@@ -31,7 +30,7 @@ class BottomSheetDialog : BottomSheetDialogFragment() {
31
30
container : ViewGroup ? ,
32
31
savedInstanceState : Bundle ? ,
33
32
): View {
34
- val rootView = BottomSheetLayoutBinding .inflate(inflater,container,false )
33
+ val rootView = BottomSheetLayoutBinding .inflate(inflater, container, false )
35
34
initAdapter(rootView)
36
35
initUi(rootView)
37
36
titleTextView = rootView.bottomSheetTitleTextView
@@ -44,13 +43,13 @@ class BottomSheetDialog : BottomSheetDialogFragment() {
44
43
get() = BottomSheetDialog ()
45
44
}
46
45
47
- private fun initUi (rootView : BottomSheetLayoutBinding ){
46
+ private fun initUi (rootView : BottomSheetLayoutBinding ) {
48
47
rootView.approveButton.setOnClickListener {
49
48
approveButtonListener?.approveItemClick(it)
50
49
}
51
50
}
52
51
53
- private fun initAdapter (rootView : BottomSheetLayoutBinding ) {
52
+ private fun initAdapter (rootView : BottomSheetLayoutBinding ) {
54
53
adapter = rootView.bottomSheetRecyclerView.let {
55
54
LastAdapter (bottomSheetAdapterList, BR .item)
56
55
.map<BottomSheetModel >(
@@ -82,7 +81,7 @@ class BottomSheetDialog : BottomSheetDialogFragment() {
82
81
}
83
82
84
83
interface BottomSheetApproveButtonListener {
85
- fun approveItemClick (view : View )
84
+ fun approveItemClick (view : View )
86
85
}
87
86
88
87
}
0 commit comments