From c72ff39e7a77896c41ea8e7ebb2dd0da922c0ef6 Mon Sep 17 00:00:00 2001 From: gulerbu Date: Tue, 27 Jul 2021 14:09:40 +0300 Subject: [PATCH] Remove commented out lines --- .../uicomponents/dialogs/DialogFragment.kt | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/libraries/dialogs/src/main/java/com/trendyol/uicomponents/dialogs/DialogFragment.kt b/libraries/dialogs/src/main/java/com/trendyol/uicomponents/dialogs/DialogFragment.kt index 8eabe7df..bc549092 100644 --- a/libraries/dialogs/src/main/java/com/trendyol/uicomponents/dialogs/DialogFragment.kt +++ b/libraries/dialogs/src/main/java/com/trendyol/uicomponents/dialogs/DialogFragment.kt @@ -30,7 +30,6 @@ class DialogFragment internal constructor() : BaseBottomSheetDialog() { var rightButtonClickListener: ((DialogFragment) -> Unit)? = null var onItemSelectedListener: ((DialogFragment, Int) -> Unit)? = null var onItemReselectedListener: ((DialogFragment, Int) -> Unit)? = null - private var lastScrollPosY : Int = 0 internal lateinit var binding: FragmentDialogBinding private val dialogArguments by lazy(LazyThreadSafetyMode.NONE) { @@ -99,28 +98,6 @@ class DialogFragment internal constructor() : BaseBottomSheetDialog() { setUpViewModel(items) } } - - /* public void setListenerToRootView() { - final View activityRootView = getWindow().getDecorView().findViewById(android.R.id.content); - activityRootView.getViewTreeObserver().addOnGlobalLayoutListener(new OnGlobalLayoutListener() { - @Override - public void onGlobalLayout() { - - int heightDiff = activityRootView.getRootView().getHeight() - activityRootView.getHeight(); - if (heightDiff > 100) { // 99% of the time the height diff will be due to a keyboard. - Toast.makeText(getApplicationContext(), "Gotcha!!! softKeyboardup", 0).show(); - - if (isOpened == false) { - //Do two things, make the view top visible and the editText smaller - } - isOpened = true; - } else if (isOpened == true) { - Toast.makeText(getApplicationContext(), "softkeyborad Down!!!", 0).show(); - isOpened = false; - } - } - }); - } */ } private fun initializeRecyclerView() = with(binding.recyclerViewItems) { @@ -181,7 +158,6 @@ class DialogFragment internal constructor() : BaseBottomSheetDialog() { dialogArguments.webViewBuilder?.invoke(webViewContent) loadWebViewContent(viewState.webViewContent) - setOnScrollChangeListener { v, scrollX, scrollY, oldScrollX, oldScrollY -> lastScrollPosY = scrollY } } } with(editTextSearch) {