INNER CODE UNIT · Kotlin
remove
NexAlloy/NexAlloy · app/src/main/java/io/github/nexalloy/PatchExecutor.kt:130
override fun remove(key: String) {
map.remove(key)
}
fun saveCache() {
val edit = pref.edit()
edit.clear()
map.forEach { (k, v) ->
edit.putString(k, v)
}
edit.commit()
}
}
class DependedHookFailedException(
subHookName: String, exception: Throwable
) : Exception("Depended hook $subHookName failed.", exception)