mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-12 17:07:17 +01:00
25 lines
826 B
Java
25 lines
826 B
Java
package com.reactcommunity.rndatetimepicker;
|
|
|
|
import androidx.annotation.Nullable;
|
|
import java.lang.reflect.Field;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes9.dex */
|
|
public class ReflectionHelper {
|
|
@Nullable
|
|
public static Field findField(Class cls, Class cls2, String str) {
|
|
try {
|
|
Field declaredField = cls.getDeclaredField(str);
|
|
declaredField.setAccessible(true);
|
|
return declaredField;
|
|
} catch (NoSuchFieldException unused) {
|
|
for (Field field : cls.getDeclaredFields()) {
|
|
if (field.getType() == cls2) {
|
|
field.setAccessible(true);
|
|
return field;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
}
|
|
}
|