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

Commit 8b7b56f0 authored by Nahun Kim's avatar Nahun Kim Committed by Vishnu Nair
Browse files

Remove unnecessary null check code for RemoteView

* It can not be null and before the statement rv has been already used.

Test: Make AppWidget on the front page.
Fixes: 168335785

Change-Id: If622ef693fb806a2b0d7a86182f9ccb10c80eba6
parent 64528ba8
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -89,8 +89,7 @@ public class RemoteViewsListAdapter extends BaseAdapter {
            RemoteViews rv = mRemoteViewsList.get(position);
            RemoteViews rv = mRemoteViewsList.get(position);
            rv.addFlags(RemoteViews.FLAG_WIDGET_IS_COLLECTION_CHILD);
            rv.addFlags(RemoteViews.FLAG_WIDGET_IS_COLLECTION_CHILD);
            View v;
            View v;
            if (convertView != null && rv != null &&
            if (convertView != null && convertView.getId() == rv.getLayoutId()) {
                    convertView.getId() == rv.getLayoutId()) {
                v = convertView;
                v = convertView;
                rv.reapply(mContext, v, null /* handler */, null /* size */, mColorResources);
                rv.reapply(mContext, v, null /* handler */, null /* size */, mColorResources);
            } else {
            } else {