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
This commit is contained in:
Nahun Kim
2021-11-25 15:09:19 +09:00
committed by Vishnu Nair
parent 64528ba853
commit 8b7b56f016

View File

@@ -89,8 +89,7 @@ public class RemoteViewsListAdapter extends BaseAdapter {
RemoteViews rv = mRemoteViewsList.get(position);
rv.addFlags(RemoteViews.FLAG_WIDGET_IS_COLLECTION_CHILD);
View v;
if (convertView != null && rv != null &&
convertView.getId() == rv.getLayoutId()) {
if (convertView != null && convertView.getId() == rv.getLayoutId()) {
v = convertView;
rv.reapply(mContext, v, null /* handler */, null /* size */, mColorResources);
} else {