fix: img.h not working;
This commit is contained in:
@@ -122,8 +122,12 @@ public class ScriptOperations {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void notifyFileCreated(ScriptFile directory, ScriptFile scriptFile) {
|
private void notifyFileCreated(ScriptFile directory, ScriptFile scriptFile) {
|
||||||
|
if (scriptFile.isDirectory()) {
|
||||||
|
mExplorer.notifyItemCreated(new ExplorerDirPage(scriptFile, mExplorerPage));
|
||||||
|
} else {
|
||||||
mExplorer.notifyItemCreated(new ExplorerFileItem(scriptFile, mExplorerPage));
|
mExplorer.notifyItemCreated(new ExplorerFileItem(scriptFile, mExplorerPage));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void newFile() {
|
public void newFile() {
|
||||||
DialogUtils.showDialog(new ThemeColorMaterialDialogBuilder(mContext).title(R.string.text_name)
|
DialogUtils.showDialog(new ThemeColorMaterialDialogBuilder(mContext).title(R.string.text_name)
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ public class JsImageView extends RoundedImageView {
|
|||||||
@Override
|
@Override
|
||||||
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
|
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
|
||||||
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
|
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
|
||||||
setMeasuredDimension(getMeasuredWidth(), getMeasuredWidth());
|
setMeasuredDimension(getMeasuredWidth(), getMeasuredHeight());
|
||||||
if (mCircle) {
|
if (mCircle) {
|
||||||
setCornerRadius(getMeasuredWidth() / 2);
|
setCornerRadius(getMeasuredWidth() / 2);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,7 +88,6 @@ public class ProjectConfig {
|
|||||||
try {
|
try {
|
||||||
return fromJson(PFiles.read(context.getAssets().open(path)));
|
return fromJson(PFiles.read(context.getAssets().open(path)));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -97,7 +96,6 @@ public class ProjectConfig {
|
|||||||
try {
|
try {
|
||||||
return fromJson(PFiles.read(path));
|
return fromJson(PFiles.read(path));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user