Skip to content

Commit 493dead

Browse files
Harun BekcanHarun Bekcan
authored andcommitted
homePage
1 parent 2ef9b90 commit 493dead

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

app/src/main/java/com/harunbekcan/sampleandroidproject/ui/fragment/HomeFragment.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package com.harunbekcan.sampleandroidproject.ui.fragment
22

33
import android.annotation.SuppressLint
44
import android.os.Bundle
5-
import android.util.Log
65
import android.view.View
76
import androidx.fragment.app.viewModels
87
import com.blankj.utilcode.util.LogUtils

app/src/main/java/com/harunbekcan/sampleandroidproject/utils/BottomSheetDialog.kt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.harunbekcan.sampleandroidproject.utils
22

3-
import android.content.DialogInterface
43
import android.os.Bundle
54
import android.view.LayoutInflater
65
import android.view.View
@@ -31,7 +30,7 @@ class BottomSheetDialog : BottomSheetDialogFragment() {
3130
container: ViewGroup?,
3231
savedInstanceState: Bundle?,
3332
): View {
34-
val rootView = BottomSheetLayoutBinding.inflate(inflater,container,false)
33+
val rootView = BottomSheetLayoutBinding.inflate(inflater, container, false)
3534
initAdapter(rootView)
3635
initUi(rootView)
3736
titleTextView = rootView.bottomSheetTitleTextView
@@ -44,13 +43,13 @@ class BottomSheetDialog : BottomSheetDialogFragment() {
4443
get() = BottomSheetDialog()
4544
}
4645

47-
private fun initUi(rootView: BottomSheetLayoutBinding){
46+
private fun initUi(rootView: BottomSheetLayoutBinding) {
4847
rootView.approveButton.setOnClickListener {
4948
approveButtonListener?.approveItemClick(it)
5049
}
5150
}
5251

53-
private fun initAdapter(rootView:BottomSheetLayoutBinding) {
52+
private fun initAdapter(rootView: BottomSheetLayoutBinding) {
5453
adapter = rootView.bottomSheetRecyclerView.let {
5554
LastAdapter(bottomSheetAdapterList, BR.item)
5655
.map<BottomSheetModel>(
@@ -82,7 +81,7 @@ class BottomSheetDialog : BottomSheetDialogFragment() {
8281
}
8382

8483
interface BottomSheetApproveButtonListener {
85-
fun approveItemClick(view:View)
84+
fun approveItemClick(view: View)
8685
}
8786

8887
}

0 commit comments

Comments
 (0)