1. bugfix: NPE
This commit is contained in:
@@ -53,6 +53,9 @@ public class AppsAdapter extends BaseAdapter {
|
||||
holder = ( ( AppViewHolder ) convertView.getTag() );
|
||||
}
|
||||
AppInfo appInfo = getItem( position );
|
||||
if ( appInfo == null ) {
|
||||
return holder.mItemView;
|
||||
}
|
||||
if ( appInfo.getIconResId() <= 0 ) {
|
||||
if ( appInfo.getIcon() != null ) {
|
||||
holder.mIcon.setImageDrawable( appInfo.getIcon() );
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
android:id="@+id/module_apps_id_app_icon"
|
||||
android:layout_width="@dimen/module_apps_navigation_icon_width"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@drawable/module_apps_ic_im"
|
||||
android:src="@drawable/module_apps_ic_default_icon"
|
||||
android:layout_height="@dimen/module_apps_navigation_icon_height" />
|
||||
|
||||
<TextView
|
||||
|
||||
Reference in New Issue
Block a user