Skip to content

Commit

Permalink
Remove commented out lines
Browse files Browse the repository at this point in the history
  • Loading branch information
gulerbu authored and gulerbu committed Jul 27, 2021
1 parent 0438b80 commit c72ff39
Showing 1 changed file with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit c72ff39

Please sign in to comment.