mirror of https://github.com/M66B/FairEmail.git
Prevent crash, cleanup
This commit is contained in:
parent
b4092d5c5e
commit
ab038ce8a2
|
@ -148,8 +148,7 @@ public class ActivitySetup extends ActivityBilling implements FragmentManager.On
|
|||
public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
|
||||
int pos = parent.getChildAdapterPosition(view);
|
||||
NavMenuItem menu = adapter.get(pos);
|
||||
Log.i("pos=" + pos + " separated=" + menu.isSeparated());
|
||||
outRect.set(0, 0, 0, menu.isSeparated() ? d.getIntrinsicHeight() : 0);
|
||||
outRect.set(0, 0, 0, menu != null && menu.isSeparated() ? d.getIntrinsicHeight() : 0);
|
||||
}
|
||||
};
|
||||
itemDecorator.setDrawable(d);
|
||||
|
|
|
@ -211,8 +211,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
|
||||
int pos = parent.getChildAdapterPosition(view);
|
||||
NavMenuItem menu = eadapter.get(pos);
|
||||
Log.i("pos=" + pos + " separated=" + menu.isSeparated());
|
||||
outRect.set(0, 0, 0, menu.isSeparated() ? d.getIntrinsicHeight() : 0);
|
||||
outRect.set(0, 0, 0, menu != null && menu.isSeparated() ? d.getIntrinsicHeight() : 0);
|
||||
}
|
||||
};
|
||||
itemDecorator.setDrawable(d);
|
||||
|
|
Loading…
Reference in New Issue