Fix nested scrolling of download logs
This commit is contained in:
parent
938df7b7fa
commit
e9e4f82abc
|
@ -1,5 +1,6 @@
|
||||||
package de.danoeh.antennapod.fragment;
|
package de.danoeh.antennapod.fragment;
|
||||||
|
|
||||||
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
|
@ -79,6 +80,9 @@ public class DownloadLogFragment extends BottomSheetDialogFragment
|
||||||
adapter = new DownloadLogAdapter(getActivity());
|
adapter = new DownloadLogAdapter(getActivity());
|
||||||
viewBinding.list.setAdapter(adapter);
|
viewBinding.list.setAdapter(adapter);
|
||||||
viewBinding.list.setOnItemClickListener(this);
|
viewBinding.list.setOnItemClickListener(this);
|
||||||
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||||
|
viewBinding.list.setNestedScrollingEnabled(true);
|
||||||
|
}
|
||||||
EventBus.getDefault().register(this);
|
EventBus.getDefault().register(this);
|
||||||
return viewBinding.getRoot();
|
return viewBinding.getRoot();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue