mirror of
https://github.com/TonyJiangWJ/Auto.js.git
synced 2026-06-21 21:01:43 +08:00
fix: img.h not working;
This commit is contained in:
parent
bb130f56ea
commit
301a4286e5
@ -122,7 +122,11 @@ public class ScriptOperations {
|
||||
}
|
||||
|
||||
private void notifyFileCreated(ScriptFile directory, ScriptFile scriptFile) {
|
||||
mExplorer.notifyItemCreated(new ExplorerFileItem(scriptFile, mExplorerPage));
|
||||
if (scriptFile.isDirectory()) {
|
||||
mExplorer.notifyItemCreated(new ExplorerDirPage(scriptFile, mExplorerPage));
|
||||
} else {
|
||||
mExplorer.notifyItemCreated(new ExplorerFileItem(scriptFile, mExplorerPage));
|
||||
}
|
||||
}
|
||||
|
||||
public void newFile() {
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user