code: private void adaptDividerVisibilities() {
          if (scrollView != null) {
              adaptDividerVisibilities(scrollView.isScrolledToTop(), scrollView.isScrolledToBottom(),
                      false);
          } else if (listView != null) {
              adaptDividerVisibilities(isListViewScrolledToTop(listView),
                      isListViewScrolledToBottom(listView), false);
          }
      }
docs: Adapts the visibility of the top and bottom divider, depending on the state of the dialog's
  scroll view.