Skip to content

Commit

Permalink
fix(android): Rely on actual string comparison and not string reference
Browse files Browse the repository at this point in the history
This change avoids relying on interning to find the _setFrameMethod.
  • Loading branch information
jeromelaban committed Feb 27, 2023
1 parent 772427d commit 0d74cb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Uno.UI.BindingHelper.Android/Uno/UI/UnoViewGroup.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private static void buildSetFrameReflection() throws ClassNotFoundException, Ins
Method[] methods = viewClass.getDeclaredMethods();

for(int i=0; i < methods.length; i++) {
if(methods[i].getName() == "setFrame" && methods[i].getParameterTypes().length == 4) {
if(methods[i].getName().equals("setFrame") && methods[i].getParameterTypes().length == 4) {
_setFrameMethod = methods[i];
_setFrameMethod.setAccessible(true);
}
Expand Down

0 comments on commit 0d74cb3

Please sign in to comment.