/** * Create image getter for context * * @param context */ @Inject public HttpImageGetter(Context context) { this.context = context; dir = context.getCacheDir(); width = ServiceUtils.getDisplayWidth(context); loading = new LoadingImageGetter(context, 24); }
/** * Create image getter for context * * @param context * @param service */ @Inject public HttpImageGetter(Context context, ContentsService service) { this.context = context; this.service = service; dir = context.getCacheDir(); width = ServiceUtils.getDisplayWidth(context); loading = new LoadingImageGetter(context, 24); okHttpClient = new OkHttpClient(); }