Removed unmaintained recyclerview-flexibledivider library
This commit is contained in:
parent
78b604355e
commit
cda24e4b8f
|
@ -191,7 +191,6 @@ dependencies {
|
|||
|
||||
implementation "com.joanzapata.iconify:android-iconify-fontawesome:$iconifyVersion"
|
||||
implementation "com.joanzapata.iconify:android-iconify-material:$iconifyVersion"
|
||||
implementation 'com.yqritc:recyclerview-flexibledivider:1.4.0'
|
||||
implementation 'com.github.shts:TriangleLabelView:1.1.2'
|
||||
implementation 'com.leinardi.android:speed-dial:3.1.1'
|
||||
implementation "com.github.AntennaPod:AntennaPod-AudioPlayer:$audioPlayerVersion"
|
||||
|
|
|
@ -90,12 +90,6 @@
|
|||
website="https://github.com/square/okio"
|
||||
license="Apache 2.0"
|
||||
licenseText="LICENSE_APACHE-2.0.txt" />
|
||||
<library
|
||||
name="RecyclerView-FlexibleDivider"
|
||||
author="yqritc"
|
||||
website="https://github.com/yqritc/RecyclerView-FlexibleDivider"
|
||||
license="Apache 2.0"
|
||||
licenseText="LICENSE_APACHE-2.0.txt" />
|
||||
<library
|
||||
name="RxAndroid"
|
||||
author="ReactiveX"
|
||||
|
|
|
@ -8,9 +8,9 @@ import android.view.ViewGroup;
|
|||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.recyclerview.widget.DividerItemDecoration;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import com.yqritc.recyclerviewflexibledivider.HorizontalDividerItemDecoration;
|
||||
import de.danoeh.antennapod.R;
|
||||
import de.danoeh.antennapod.adapter.ChaptersListAdapter;
|
||||
import de.danoeh.antennapod.core.event.PlaybackPositionEvent;
|
||||
|
@ -45,7 +45,8 @@ public class ChaptersFragment extends Fragment {
|
|||
RecyclerView recyclerView = root.findViewById(R.id.recyclerView);
|
||||
layoutManager = new LinearLayoutManager(getActivity());
|
||||
recyclerView.setLayoutManager(layoutManager);
|
||||
recyclerView.addItemDecoration(new HorizontalDividerItemDecoration.Builder(getActivity()).build());
|
||||
recyclerView.addItemDecoration(new DividerItemDecoration(recyclerView.getContext(),
|
||||
layoutManager.getOrientation()));
|
||||
|
||||
adapter = new ChaptersListAdapter(getActivity(), pos -> {
|
||||
if (controller.getStatus() != PlayerStatus.PLAYING) {
|
||||
|
|
|
@ -6,9 +6,9 @@ import android.content.res.Configuration;
|
|||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import androidx.appcompat.view.ContextThemeWrapper;
|
||||
import androidx.recyclerview.widget.DividerItemDecoration;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import com.yqritc.recyclerviewflexibledivider.HorizontalDividerItemDecoration;
|
||||
import de.danoeh.antennapod.R;
|
||||
import io.reactivex.annotations.Nullable;
|
||||
|
||||
|
@ -39,7 +39,7 @@ public class EpisodeItemListRecyclerView extends RecyclerView {
|
|||
layoutManager.setRecycleChildrenOnDetach(true);
|
||||
setLayoutManager(layoutManager);
|
||||
setHasFixedSize(true);
|
||||
addItemDecoration(new HorizontalDividerItemDecoration.Builder(getContext()).build());
|
||||
addItemDecoration(new DividerItemDecoration(getContext(), layoutManager.getOrientation()));
|
||||
setClipToPadding(false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue