diff options
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/adapter/SubscriptionsAdapter.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/SubscriptionsAdapter.java b/app/src/main/java/de/danoeh/antennapod/adapter/SubscriptionsAdapter.java index f799a880e..970d2e535 100644 --- a/app/src/main/java/de/danoeh/antennapod/adapter/SubscriptionsAdapter.java +++ b/app/src/main/java/de/danoeh/antennapod/adapter/SubscriptionsAdapter.java @@ -1,6 +1,9 @@ package de.danoeh.antennapod.adapter; import android.content.Context; + +import androidx.core.text.TextUtilsCompat; +import androidx.core.view.ViewCompat; import androidx.fragment.app.Fragment; import android.view.LayoutInflater; import android.view.View; @@ -87,6 +90,13 @@ public class SubscriptionsAdapter extends BaseAdapter implements AdapterView.OnI holder.feedTitle.setText(feed.getTitle()); holder.imageView.setContentDescription(feed.getTitle()); holder.feedTitle.setVisibility(View.VISIBLE); + + // Fix TriangleLabelView corner for RTL + if (TextUtilsCompat.getLayoutDirectionFromLocale(Locale.getDefault()) + == ViewCompat.LAYOUT_DIRECTION_RTL) { + holder.count.setCorner(TriangleLabelView.Corner.TOP_LEFT); + } + int count = itemAccess.getFeedCounter(feed.getId()); if(count > 0) { holder.count.setPrimaryText(String.format(Locale.getDefault(), "%d", |