mirror of
https://github.com/Docile-Alligator/Infinity-For-Reddit.git
synced 2026-02-05 06:15:39 +00:00
Fix crash on Android 5: Don't define android:visibility="gone" on LoadingIndicator.
This commit is contained in:
@ -4018,6 +4018,7 @@ public class PostRecyclerViewAdapter extends PagingDataAdapter<Post, RecyclerVie
|
||||
playButtonImageView.setColorFilter(mMediaIndicatorIconTint, PorterDuff.Mode.SRC_IN);
|
||||
playButtonImageView.setBackgroundTintList(ColorStateList.valueOf(mMediaIndicatorBackgroundColor));
|
||||
loadingIndicator.setIndicatorColor(mColorAccent);
|
||||
loadingIndicator.setVisibility(View.GONE);
|
||||
noPreviewLinkImageView.setBackgroundColor(mNoPreviewPostTypeBackgroundColor);
|
||||
noPreviewLinkImageView.setColorFilter(mNoPreviewPostTypeIconTint, android.graphics.PorterDuff.Mode.SRC_IN);
|
||||
upvoteButton.setIconTint(ColorStateList.valueOf(mPostIconAndInfoColor));
|
||||
@ -4300,6 +4301,7 @@ public class PostRecyclerViewAdapter extends PagingDataAdapter<Post, RecyclerVie
|
||||
itemView.setBackgroundTintList(ColorStateList.valueOf(mCardViewBackgroundColor));
|
||||
binding.titleTextViewItemPostGallery.setTextColor(mPostTitleColor);
|
||||
binding.progressBarItemPostGallery.setIndicatorColor(mColorAccent);
|
||||
binding.progressBarItemPostGallery.setVisibility(View.GONE);
|
||||
binding.imageViewNoPreviewItemPostGallery.setBackgroundColor(mNoPreviewPostTypeBackgroundColor);
|
||||
binding.imageViewNoPreviewItemPostGallery.setColorFilter(mNoPreviewPostTypeIconTint, android.graphics.PorterDuff.Mode.SRC_IN);
|
||||
binding.videoOrGifIndicatorImageViewItemPostGallery.setColorFilter(mMediaIndicatorIconTint, PorterDuff.Mode.SRC_IN);
|
||||
|
||||
@ -110,8 +110,7 @@
|
||||
android:id="@+id/progress_bar_item_post_compact"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:visibility="gone" />
|
||||
android:layout_centerInParent="true" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
@ -127,8 +127,7 @@
|
||||
android:id="@+id/progress_bar_item_post_compact_2"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:visibility="gone" />
|
||||
android:layout_centerInParent="true" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
@ -140,8 +140,7 @@
|
||||
android:id="@+id/progress_bar_item_post_compact_2_right_thumbnail"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:visibility="gone" />
|
||||
android:layout_centerInParent="true" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
@ -230,8 +230,7 @@
|
||||
android:id="@+id/progress_bar_item_post_compact_right_thumbnail"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:visibility="gone" />
|
||||
android:layout_centerInParent="true" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
@ -13,8 +13,7 @@
|
||||
android:id="@+id/progress_bar_item_post_gallery"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:visibility="gone" />
|
||||
android:layout_gravity="center" />
|
||||
|
||||
<ml.docilealligator.infinityforreddit.customviews.AspectRatioGifImageView
|
||||
android:id="@+id/image_view_item_post_gallery"
|
||||
|
||||
Reference in New Issue
Block a user