mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-29 03:05:31 +00:00
Prevent crash
This commit is contained in:
parent
8f23b74d2b
commit
6a237304a0
1 changed files with 2 additions and 1 deletions
|
@ -474,7 +474,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
DividerItemDecoration itemDecorator = new DividerItemDecoration(getContext(), llm.getOrientation()) {
|
||||
@Override
|
||||
public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
|
||||
if (view.findViewById(R.id.clItem).getVisibility() == View.GONE)
|
||||
View clItem = view.findViewById(R.id.clItem);
|
||||
if (clItem == null || clItem.getVisibility() == View.GONE)
|
||||
outRect.setEmpty();
|
||||
else
|
||||
super.getItemOffsets(outRect, view, parent, state);
|
||||
|
|
Loading…
Reference in a new issue