diff options
author | ByteHamster <info@bytehamster.com> | 2021-11-28 22:20:57 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2021-11-28 22:20:57 +0100 |
commit | 561141cfffaacc159660578a46cb393d7be5bc68 (patch) | |
tree | 8f26e238e7ebfe3e927f2449a724eff90025836b /app/src/main/java/de | |
parent | f0100e61ac633516082ea112363132c99f7c0b7a (diff) | |
parent | 19dfa08905e33943995edb1703b8ddc3bb9fc0ea (diff) | |
download | AntennaPod-561141cfffaacc159660578a46cb393d7be5bc68.zip |
Merge branch 'master' into develop
Diffstat (limited to 'app/src/main/java/de')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java | 2 | ||||
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/adapter/SubscriptionsRecyclerAdapter.java | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java index 4307df465..9148a9949 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java @@ -46,10 +46,10 @@ import de.danoeh.antennapod.core.storage.DBReader; import de.danoeh.antennapod.core.storage.DBWriter; import de.danoeh.antennapod.core.storage.DownloadRequestException; import de.danoeh.antennapod.core.storage.DownloadRequester; +import de.danoeh.antennapod.core.util.FileNameGenerator; import de.danoeh.antennapod.parser.feed.FeedHandler; import de.danoeh.antennapod.parser.feed.FeedHandlerResult; import de.danoeh.antennapod.core.util.DownloadError; -import de.danoeh.antennapod.core.util.FileNameGenerator; import de.danoeh.antennapod.core.util.IntentUtils; import de.danoeh.antennapod.core.util.StorageUtils; import de.danoeh.antennapod.core.util.URLChecker; diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/SubscriptionsRecyclerAdapter.java b/app/src/main/java/de/danoeh/antennapod/adapter/SubscriptionsRecyclerAdapter.java index a73e247e8..b637eb31d 100644 --- a/app/src/main/java/de/danoeh/antennapod/adapter/SubscriptionsRecyclerAdapter.java +++ b/app/src/main/java/de/danoeh/antennapod/adapter/SubscriptionsRecyclerAdapter.java @@ -3,6 +3,7 @@ package de.danoeh.antennapod.adapter; import android.content.Context; import android.graphics.Canvas; import android.graphics.Rect; +import android.graphics.drawable.Drawable; import android.view.ContextMenu; import android.view.LayoutInflater; import android.view.MenuInflater; @@ -15,6 +16,7 @@ import android.widget.ImageView; import android.widget.TextView; import androidx.annotation.NonNull; +import androidx.appcompat.content.res.AppCompatResources; import androidx.core.text.TextUtilsCompat; import androidx.core.view.ViewCompat; import androidx.fragment.app.Fragment; @@ -188,6 +190,9 @@ public class SubscriptionsRecyclerAdapter extends SelectableAdapter<Subscription } public void bind(NavDrawerData.DrawerItem drawerItem) { + Drawable drawable = AppCompatResources.getDrawable(selectView.getContext(), + R.drawable.ic_checkbox_background); + selectView.setBackground(drawable); // Setting this in XML crashes API <= 21 feedTitle.setText(drawerItem.getTitle()); imageView.setContentDescription(drawerItem.getTitle()); feedTitle.setVisibility(View.VISIBLE); |