Преглед изворни кода

secure folder floating android

kevin пре 1 година
родитељ
комит
d375a3f11f
1 измењених фајлова са 24 додато и 0 уклоњено
  1. 24 0
      main.py

+ 24 - 0
main.py

@@ -244,6 +244,12 @@ def change(platform: str, mode: str, path_dest: str, features: dict, security: d
                         else:
                             f.write(indented_str(6,
                                                  '// fb.add(new FloatingButton(FloatingButton.FEATURE.STREAMING, ""));'))
+                        if security["secure_folder"]:
+                            f.write(
+                                indented_str(6, 'fb.add(new FloatingButton(FloatingButton.FEATURE.SECURE_FOLDER, ""));'))
+                        else:
+                            f.write(indented_str(6,
+                                                 '// fb.add(new FloatingButton(FloatingButton.FEATURE.SECURE_FOLDER, ""));'))
                         f.write(indented_str(6,
                                              'API.configureFloating(fb);'))
                     else:
@@ -571,6 +577,12 @@ def change(platform: str, mode: str, path_dest: str, features: dict, security: d
                         else:
                             f.write(indented_str(6,
                                                  '// fb.add(new FloatingButton(FloatingButton.FEATURE.STREAMING, ""));'))
+                        if security["secure_folder"]:
+                            f.write(
+                                indented_str(6, 'fb.add(new FloatingButton(FloatingButton.FEATURE.SECURE_FOLDER, ""));'))
+                        else:
+                            f.write(indented_str(6,
+                                                 '// fb.add(new FloatingButton(FloatingButton.FEATURE.SECURE_FOLDER, ""));'))
                         f.write(indented_str(6,
                                              'API.configureFloating(fb);'))
                     else:
@@ -806,6 +818,12 @@ def change(platform: str, mode: str, path_dest: str, features: dict, security: d
                         else:
                             f.write(indented_str(6,
                                                  '// fb.add(new FloatingButton(FloatingButton.FEATURE.STREAMING, ""));', spaces=2))
+                        if security["secure_folder"]:
+                            f.write(
+                                indented_str(6, 'fb.add(new FloatingButton(FloatingButton.FEATURE.SECURE_FOLDER, ""));', spaces=2))
+                        else:
+                            f.write(indented_str(6,
+                                                 '// fb.add(new FloatingButton(FloatingButton.FEATURE.SECURE_FOLDER, ""));', spaces=2))
                         f.write(indented_str(6,
                                              'API.configureFloating(fb);', spaces=2))
                     else:
@@ -1233,6 +1251,12 @@ def change(platform: str, mode: str, path_dest: str, features: dict, security: d
                         else:
                             f.write(indented_str(6,
                                                  '// fb.add(new FloatingButton(FloatingButton.FEATURE.STREAMING, ""));'))
+                        if security["secure_folder"]:
+                            f.write(
+                                indented_str(6, 'fb.add(new FloatingButton(FloatingButton.FEATURE.SECURE_FOLDER, ""));'))
+                        else:
+                            f.write(indented_str(6,
+                                                 '// fb.add(new FloatingButton(FloatingButton.FEATURE.SECURE_FOLDER, ""));'))
                         f.write(indented_str(6,
                                              'API.configureFloating(fb);'))
                     else: