瀏覽代碼

update mssing

kevin 1 年之前
父節點
當前提交
5396c5ca2f
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. 7 2
      main.py

+ 7 - 2
main.py

@@ -113,6 +113,11 @@ def change(platform: str, path_dest: str, features: dict, security: dict):
                         f.write(indented_str(3, "API.openOptionsStreaming();"))
                         f.write(indented_str(3, "return true;"))
                         f.write(indented_str(2, "}"))
+                    else:
+                        f.write(indented_str(2, "// if (id == R.id.action_ls) {"))
+                        f.write(indented_str(3, "// API.openOptionsStreaming();"))
+                        f.write(indented_str(3, "// return true;"))
+                        f.write(indented_str(2, "// }"))
                 elif "//SECURITY" in line:
                     if security["show_security"]:
                         f.write(indented_str(2, "API.setShowSecurityShieldDialog(true);"))
@@ -139,7 +144,7 @@ def change(platform: str, path_dest: str, features: dict, security: dict):
                         f.write(indented_str(3, "}"))
                         f.write(os.linesep)
                         f.write(indented_str(3, "@Override"))
-                        f.write(indented_str(3, "public boolean onError(String s) {"))
+                        f.write(indented_str(3, "public void onError(String s) {"))
                         f.write(os.linesep)
                         f.write(indented_str(3, "}"))
                         f.write(indented_str(2, "});"))
@@ -154,7 +159,7 @@ def change(platform: str, path_dest: str, features: dict, security: dict):
                         f.write(indented_str(3, "}"))
                         f.write(os.linesep)
                         f.write(indented_str(3, "@Override"))
-                        f.write(indented_str(3, "public boolean onError(String s) {"))
+                        f.write(indented_str(3, "public void onError(String s) {"))
                         f.write(os.linesep)
                         f.write(indented_str(3, "}"))
                         f.write(indented_str(2, "}); */"))