mirror of
https://github.com/revanced/Apktool.git
synced 2024-06-10 15:18:02 +02:00
fix: get rid of KeyEvent (AWT)
This commit is contained in:
parent
e115848dbc
commit
d31e5275dc
|
@ -19,7 +19,6 @@ package brut.androlib.res.xml;
|
|||
import brut.util.Duo;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.awt.event.KeyEvent;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -207,9 +206,11 @@ public final class ResXmlEncoders {
|
|||
return new Duo<>(nonPositional, positional);
|
||||
}
|
||||
|
||||
private static final char CHAR_UNDEFINED = 65535; // java.awt.event.KeyEvent.CHAR_UNDEFINED
|
||||
|
||||
private static boolean isPrintableChar(char c) {
|
||||
Character.UnicodeBlock block = Character.UnicodeBlock.of(c);
|
||||
return !Character.isISOControl(c) && c != KeyEvent.CHAR_UNDEFINED
|
||||
return !Character.isISOControl(c) && c != CHAR_UNDEFINED
|
||||
&& block != null && block != Character.UnicodeBlock.SPECIALS;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user