compare string descr instead of type

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2025-03-24 18:14:46 +01:00
parent aa78127087
commit 982f32caf3
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
3 changed files with 107 additions and 9 deletions

View file

@ -195,6 +195,7 @@ public class MainActivity extends Activity {
Method mth = clz.getMethod("getColliderId");
String id = (String)mth.invoke(null);
//Utils.popup(this, "Result", id);
Utils.popup(this, "TEST", clz.descriptorString());
String expectedId = "A";
if (id.equals(expectedId)) {
Utils.popup(this, "OK", "The right class was loaded: " + id);