fix: img.h not working;

This commit is contained in:
hyb1996
2018-09-26 23:43:13 +08:00
parent bb130f56ea
commit 301a4286e5
3 changed files with 6 additions and 4 deletions

View File

@@ -51,7 +51,7 @@ public class JsImageView extends RoundedImageView {
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
setMeasuredDimension(getMeasuredWidth(), getMeasuredWidth());
setMeasuredDimension(getMeasuredWidth(), getMeasuredHeight());
if (mCircle) {
setCornerRadius(getMeasuredWidth() / 2);
}

View File

@@ -88,7 +88,6 @@ public class ProjectConfig {
try {
return fromJson(PFiles.read(context.getAssets().open(path)));
} catch (Exception e) {
e.printStackTrace();
return null;
}
}
@@ -97,7 +96,6 @@ public class ProjectConfig {
try {
return fromJson(PFiles.read(path));
} catch (Exception e) {
e.printStackTrace();
return null;
}
}