Fix nested scrolling of download logs

This commit is contained in:
ByteHamster 2022-08-04 19:50:04 +02:00
parent 938df7b7fa
commit e9e4f82abc
1 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,6 @@
package de.danoeh.antennapod.fragment;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
@ -79,6 +80,9 @@ public class DownloadLogFragment extends BottomSheetDialogFragment
adapter = new DownloadLogAdapter(getActivity());
viewBinding.list.setAdapter(adapter);
viewBinding.list.setOnItemClickListener(this);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
viewBinding.list.setNestedScrollingEnabled(true);
}
EventBus.getDefault().register(this);
return viewBinding.getRoot();
}