private int[] getDimensionsPortrait(int width, int height) {
if (width < height) return new int [] {width, height};
else return new int [] {height, width};
}
private GetDimens getDimens(Size size) {
<BUG>TargetUi targetUi = new TargetUi(activityRule.getActivity());
GetPath getPath = new GetPath(targetUi);</BUG>
Config config = new Config();
<BUG>config.setSize(size);
return new GetDimens(targetUi, config, getPath);</BUG>
}

private int[] getDimensionsPortrait(int width, int height) {
if (width < height) return new int [] {width, height};
else return new int [] {height, width};
}
private GetDimens getDimens(Size size) {
Config config = new Config();
config.setSize(size);
TargetUi targetUi = new TargetUi(activityRule.getActivity());
ImageUtils imageUtils = new ImageUtils(targetUi, config);
DownloadImage downloadImage = new DownloadImage(targetUi, imageUtils);
GetPath getPath = new GetPath(targetUi, imageUtils, downloadImage);
return new GetDimens(targetUi, config, getPath);
}
