package com.kofax.mobile.sdk.g; import com.kofax.kmc.kut.utilities.appstats.AppStatsClientEventLogger; import com.kofax.kmc.kut.utilities.appstats.dao.AppStatsDao; import com.kofax.kmc.kut.utilities.appstats.dao.PropertyChangeEventDao; import com.kofax.kmc.kut.utilities.appstats.type.AppStatsDsOpType; import com.kofax.kmc.kut.utilities.appstats.type.AppStatsEventIDType; import com.kofax.kmc.kut.utilities.appstats.type.AppStatsInstanceType; import com.kofax.kmc.kut.utilities.appstats.type.AppStatsPropertyType; /* loaded from: classes3.dex */ public class i extends a { private static final String TAG = "i"; private PropertyChangeEventDao yc; private AppStatsPropertyType yd; private String ye; public i(AppStatsInstanceType appStatsInstanceType) { super(appStatsInstanceType); this.yc = null; this.yd = AppStatsPropertyType.PROP_TYPE_UNUSED; this.ye = null; } public i(String str, AppStatsInstanceType appStatsInstanceType, boolean z) { super(str, appStatsInstanceType, z); this.yc = null; this.yd = AppStatsPropertyType.PROP_TYPE_UNUSED; this.ye = null; } public void a(AppStatsEventIDType appStatsEventIDType, AppStatsPropertyType appStatsPropertyType, String str, String str2) { this.yd = appStatsPropertyType; this.ye = str2; a(appStatsEventIDType, new AppStatsClientEventLogger(this, str, str2) { // from class: com.kofax.mobile.sdk.g.i.1 final String yf; final String yg; final i yh; { this.yh = this; this.yf = str; this.yg = str2; } @Override // com.kofax.kmc.kut.utilities.appstats.AppStatsClientEventLogger public void logEvent(AppStatsEventIDType appStatsEventIDType2) { if (AnonymousClass2.xL[appStatsEventIDType2.ordinal()] != 1 || this.yf.equals(this.yg)) { return; } this.yh.a(appStatsEventIDType2); this.yh.iL(); } }); } /* renamed from: com.kofax.mobile.sdk.g.i$2, reason: invalid class name */ /* loaded from: classes3.dex */ static /* synthetic */ class AnonymousClass2 { static final int[] xL; static { int[] iArr = new int[AppStatsEventIDType.values().length]; xL = iArr; try { iArr[AppStatsEventIDType.APP_STATS_PROPERTY_CHANGE_EVENT.ordinal()] = 1; } catch (NoSuchFieldError unused) { } } } /* JADX INFO: Access modifiers changed from: private */ public void iL() { PropertyChangeEventDao propertyChangeEventDao = new PropertyChangeEventDao(); this.yc = propertyChangeEventDao; propertyChangeEventDao.setInstanceId(this.rG); this.yc.setEventTime(this.asFriend.currentEventTime()); this.yc.setPropertyType(this.yd); this.yc.setPropertyValue(this.ye); PropertyChangeEventDao propertyChangeEventDao2 = this.yc; propertyChangeEventDao2.setSessionKey(propertyChangeEventDao2.getAppStatsSessionKey()); this.yc.setDsOperation(AppStatsDsOpType.APP_STATS_DS_INSERT); a(new AppStatsDao[]{this.yc}); } }