mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1058136 - Fix debug logging crash; r=cpeterson
This commit is contained in:
parent
1935360c34
commit
1472dab021
@ -1039,12 +1039,14 @@ final class GeckoEditable
|
||||
if (DEBUG) {
|
||||
StringBuilder log = new StringBuilder(method.getName());
|
||||
log.append("(");
|
||||
if (args != null) {
|
||||
for (Object arg : args) {
|
||||
debugAppend(log, arg).append(", ");
|
||||
}
|
||||
if (args.length > 0) {
|
||||
log.setLength(log.length() - 2);
|
||||
}
|
||||
}
|
||||
if (method.getReturnType().equals(Void.TYPE)) {
|
||||
log.append(")");
|
||||
} else {
|
||||
|
@ -1024,6 +1024,7 @@ final class DebugGeckoInputConnection
|
||||
|
||||
StringBuilder log = new StringBuilder(mCallLevel);
|
||||
log.append("> ").append(method.getName()).append("(");
|
||||
if (args != null) {
|
||||
for (Object arg : args) {
|
||||
// translate argument values to constant names
|
||||
if ("notifyIME".equals(method.getName()) && arg == args[0]) {
|
||||
@ -1040,6 +1041,7 @@ final class DebugGeckoInputConnection
|
||||
if (args.length > 0) {
|
||||
log.setLength(log.length() - 2);
|
||||
}
|
||||
}
|
||||
log.append(")");
|
||||
Log.d(LOGTAG, log.toString());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user