Little fixes

This commit is contained in:
ByteHamster 2020-02-13 20:26:45 +01:00
parent 3c6fd072e3
commit 5de0cc138c
3 changed files with 4 additions and 3 deletions

View File

@ -83,6 +83,7 @@ public class CoverFragment extends Fragment {
private void displayMediaInfo(@NonNull Playable media) {
txtvPodcastTitle.setText(media.getFeedTitle());
txtvEpisodeTitle.setText(media.getEpisodeTitle());
displayedChapterIndex = -2; // Force refresh
displayCoverImage(media.getPosition());
}

View File

@ -27,8 +27,7 @@ public class SquareImageView extends AppCompatImageView {
}
private void loadAttrs(Context context, AttributeSet attrs) {
TypedArray a = context.getTheme().obtainStyledAttributes(attrs,
new int[]{R.styleable.SquareImageView_useMinimum}, 0, 0);
TypedArray a = context.obtainStyledAttributes(attrs, new int[]{R.styleable.SquareImageView_useMinimum});
useMinimum = a.getBoolean(0, false);
a.recycle();
}

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:squareImageView="http://schemas.android.com/apk/de.danoeh.antennapod"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:squareImageView="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:padding="8dp"
android:gravity="center">
@ -43,6 +43,7 @@
android:maxLines="2"
android:textColor="?android:attr/textColorPrimary"
android:textIsSelectable="true"
android:layout_marginBottom="8dp"
tools:text="Episode" />
</LinearLayout>