Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5a03eb0 authored by Winson Chung's avatar Winson Chung
Browse files

Ensuring that we skip item decoration drawing when there are no apps.

Bug: 20431579

Change-Id: I870c43ff8a94e2cb2c68869f2a31001d028ad58a
parent 4897af52
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -72,6 +72,10 @@ class AppsGridAdapter extends RecyclerView.Adapter<AppsGridAdapter.ViewHolder> {
        @Override
        public void onDraw(Canvas c, RecyclerView parent, RecyclerView.State state) {
            List<AlphabeticalAppsList.AdapterItem> items = mApps.getAdapterItems();
            if (items.isEmpty()) {
                return;
            }

            for (int i = 0; i < parent.getChildCount(); i++) {
                View child = parent.getChildAt(i);
                ViewHolder holder = (ViewHolder) parent.getChildViewHolder(child);