Merge pull request #5996 from ByteHamster/nested-download-log

Fix nested scrolling of download logs
This commit is contained in:
ByteHamster 2022-08-04 21:54:53 +02:00 committed by GitHub
commit 2173508d3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();
}