Fixing crash on sdk =28 for emoji reactions

This commit is contained in:
ThomasSession 2024-08-27 10:44:39 +10:00
parent 1393335121
commit db6d67f53c
4 changed files with 3 additions and 4 deletions

View File

@ -99,7 +99,7 @@ class ReactionViewPagerAdapter extends ListAdapter<EmojiCount, ReactionViewPager
recycler.setLayoutParams(params); recycler.setLayoutParams(params);
DividerItemDecoration decoration = new DividerItemDecoration(itemView.getContext(), LinearLayoutManager.VERTICAL); DividerItemDecoration decoration = new DividerItemDecoration(itemView.getContext(), LinearLayoutManager.VERTICAL);
decoration.setDrawable(ContextUtil.requireDrawable(itemView.getContext(), R.drawable.vertical_divider)); decoration.setDrawable(ContextUtil.requireDrawable(itemView.getContext(), R.drawable.horizontal_divider));
recycler.addItemDecoration(decoration); recycler.addItemDecoration(decoration);
recycler.setAdapter(adapter); recycler.setAdapter(adapter);
} }

View File

@ -68,7 +68,6 @@ public final class ReactionsDialogFragment extends BottomSheetDialogFragment imp
@Override @Override
public void onCreate(@Nullable Bundle savedInstanceState) { public void onCreate(@Nullable Bundle savedInstanceState) {
// setStyle(DialogFragment.STYLE_NORMAL, R.style.Theme_Session_BottomSheet);
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
} }

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"> <shape xmlns:android="http://schemas.android.com/apk/res/android">
<size android:height="1dp"/> <size android:height="1dp"/>
<solid android:color="?android:textColorTertiary"/> <solid android:color="?colorDividerBackground"/>
</shape> </shape>

View File

@ -8,7 +8,7 @@
android:layout_gravity="top" android:layout_gravity="top"
android:alpha="0.3" android:alpha="0.3"
android:layout_marginHorizontal="@dimen/small_spacing" android:layout_marginHorizontal="@dimen/small_spacing"
android:background="?android:textColorTertiary" android:background="?colorDividerBackground"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="1dp"/> android:layout_height="1dp"/>
<LinearLayout android:layout_height="wrap_content" <LinearLayout android:layout_height="wrap_content"