mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-05 19:40:47 -05:00
Prevent excessive su requests
This commit is contained in:
@@ -16,6 +16,14 @@ public class CallbackHandler {
|
||||
list.add(listener);
|
||||
}
|
||||
|
||||
public static void unRegister(Event event) {
|
||||
HashSet<EventListener> list = listeners.get(event);
|
||||
if (list != null) {
|
||||
list.clear();
|
||||
listeners.remove(event);
|
||||
}
|
||||
}
|
||||
|
||||
public static void unRegister(Event event, EventListener listener) {
|
||||
HashSet<EventListener> list = listeners.get(event);
|
||||
if (list != null) {
|
||||
|
||||
Reference in New Issue
Block a user