Search in sources :

Example 1 with SimpleDraweeControllerBuilder

use of com.facebook.drawee.interfaces.SimpleDraweeControllerBuilder in project fresco by facebook.

the class InstrumentedDraweeView method setImageURI.

@Override
public void setImageURI(Uri uri, @Nullable Object callerContext) {
    SimpleDraweeControllerBuilder controllerBuilder = getControllerBuilder().setUri(uri).setCallerContext(callerContext).setOldController(getController());
    if (mConfig.instrumentationEnabled && controllerBuilder instanceof AbstractDraweeControllerBuilder) {
        ((AbstractDraweeControllerBuilder<?, ?, ?, ?>) controllerBuilder).setControllerListener(mListener);
    }
    setController(controllerBuilder.build());
}
Also used : AbstractDraweeControllerBuilder(com.facebook.drawee.controller.AbstractDraweeControllerBuilder) SimpleDraweeControllerBuilder(com.facebook.drawee.interfaces.SimpleDraweeControllerBuilder)

Example 2 with SimpleDraweeControllerBuilder

use of com.facebook.drawee.interfaces.SimpleDraweeControllerBuilder in project fresco by facebook.

the class InstrumentedDraweeView method setImageURI.

@Override
public void setImageURI(Uri uri, @Nullable Object callerContext) {
    SimpleDraweeControllerBuilder controllerBuilder = getControllerBuilder().setUri(uri).setCallerContext(callerContext).setOldController(getController());
    if (controllerBuilder instanceof AbstractDraweeControllerBuilder) {
        ((AbstractDraweeControllerBuilder<?, ?, ?, ?>) controllerBuilder).setControllerListener(mListener);
    }
    setController(controllerBuilder.build());
}
Also used : AbstractDraweeControllerBuilder(com.facebook.drawee.controller.AbstractDraweeControllerBuilder) SimpleDraweeControllerBuilder(com.facebook.drawee.interfaces.SimpleDraweeControllerBuilder)

Aggregations

AbstractDraweeControllerBuilder (com.facebook.drawee.controller.AbstractDraweeControllerBuilder)2 SimpleDraweeControllerBuilder (com.facebook.drawee.interfaces.SimpleDraweeControllerBuilder)2