Code example for Context

Methods: getApplicationContext

0
 
	private ImageLoader imageLoader;
    private boolean ignoreIntel;
 
	public SocialItemViewBinder(final Context context, boolean ignoreIntel) {
		this.imageLoader = ((NewsBlurApplication) context.getApplicationContext()).getImageLoader();
        this.ignoreIntel = ignoreIntel;
	} 
 
    public SocialItemViewBinder(final Context context) {
        this(context, false);
    } 
	 
	@Override 
	public boolean setViewValue(View view, Cursor cursor, int columnIndex) {
		final String columnName = cursor.getColumnName(columnIndex);
		final int hasBeenRead = cursor.getInt(cursor.getColumnIndex(DatabaseConstants.STORY_READ));
		if (TextUtils.equals(cursor.getColumnName(columnIndex), DatabaseConstants.FEED_FAVICON_URL)) {
			String faviconUrl = cursor.getString(columnIndex);
			imageLoader.displayImage(faviconUrl, ((ImageView) view), true);
			return true;