x1ongzhu 1 سال پیش
والد
کامیت
fd0a7cb6e2

+ 0 - 10
app/src/main/java/com/example/modifier/repo/BackupRepository.kt

@@ -46,16 +46,6 @@ class BackupRepository(
             System.currentTimeMillis().toString()
         )
         dest.mkdirs()
-        val file = File(ContextCompat.getDataDir(context), "config.json")
-        if (!file.exists()) {
-            throw Exception("Config file not found")
-        }
-        withContext(Dispatchers.IO) {
-            IOUtils.copy(
-                Files.newInputStream(file.toPath()),
-                Files.newOutputStream(File(dest, "config.json").toPath())
-            )
-        }
 
         val packages = mutableListOf(
             PACKAGE_MESSAGING,

+ 1 - 1
app/src/main/java/com/example/modifier/service/TaskRunner.kt

@@ -422,7 +422,7 @@ class TaskRunner(
                             prefs.edit()
                                 .remove("clash_profile")
                                 .apply()
-                            stopClash()
+                            //stopClash()
                         } else {
                             val oldProfile = prefs.getString("clash_profile", "")
                             if (oldProfile != device.clashProfile) {