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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user