so, i am following MVP pattern and i am delegating every view task to presenter, just the way it should be done
for ex. :
@Override
public void onSurfaceTextureAvailable(SurfaceTexture surfaceTexture, int i, int i1) {
if(textureView.getVisibility != View.GONE)
mPresenter.onSurfaceTextureAvailable(surfaceTexture);
}
i wanted to know if checking for the visibility of a view directly like this inside my activity(which is the View in MVP) is permitted?
thanks!