49 lines
2.6 KiB
Java
49 lines
2.6 KiB
Java
package com.discord.utilities.analytics;
|
|
|
|
import android.net.Uri;
|
|
import com.adjust.sdk.Constants;
|
|
import com.discord.utilities.analytics.AppStartAnalyticsTracker;
|
|
import d0.t.h0;
|
|
import d0.z.d.o;
|
|
import java.util.Map;
|
|
import kotlin.Pair;
|
|
import kotlin.jvm.functions.Function0;
|
|
/* compiled from: AppStartAnalyticsTracker.kt */
|
|
public final class AppStartAnalyticsTracker$appOpen$1 extends o implements Function0<Map<String, ? extends Object>> {
|
|
public final /* synthetic */ boolean $isNotificationRoute;
|
|
public final /* synthetic */ Uri $uri;
|
|
public final /* synthetic */ boolean $uriCanBeRouted;
|
|
public final /* synthetic */ AppStartAnalyticsTracker this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public AppStartAnalyticsTracker$appOpen$1(AppStartAnalyticsTracker appStartAnalyticsTracker, boolean z2, boolean z3, Uri uri) {
|
|
super(0);
|
|
this.this$0 = appStartAnalyticsTracker;
|
|
this.$isNotificationRoute = z2;
|
|
this.$uriCanBeRouted = z3;
|
|
this.$uri = uri;
|
|
}
|
|
|
|
/* Return type fixed from 'java.util.Map<java.lang.String, java.lang.Object>' to match base method */
|
|
/* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x001c: APUT
|
|
(r0v1 kotlin.Pair[])
|
|
(0 ??[int, short, byte, char])
|
|
(wrap: kotlin.Pair : 0x0017: INVOKE (r1v2 kotlin.Pair) = ("opened_from"), (r1v1 java.lang.String) type: STATIC call: d0.o.to(java.lang.Object, java.lang.Object):kotlin.Pair)
|
|
*/
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: invoke */
|
|
public final Map<String, ? extends Object> mo1invoke() {
|
|
Pair[] pairArr = new Pair[2];
|
|
pairArr[0] = d0.o.to("opened_from", this.$isNotificationRoute ? "notification" : this.$uriCanBeRouted ? Constants.DEEPLINK : "launcher");
|
|
pairArr[1] = d0.o.to("theme", AppStartAnalyticsTracker.access$getStoreUserSettingsSystem$p(this.this$0).getTheme());
|
|
Map<String, ? extends Object> mutableMapOf = h0.mutableMapOf(pairArr);
|
|
AppStartAnalyticsTracker.Companion.access$insertUriProperties(AppStartAnalyticsTracker.Companion, mutableMapOf, this.$uri);
|
|
if (AppStartAnalyticsTracker.access$getAppOpenTimestamp$p(this.this$0) == null) {
|
|
mutableMapOf.put("load_id", AppStartAnalyticsTracker.access$getOpenAppLoadId$p(this.this$0));
|
|
AppStartAnalyticsTracker appStartAnalyticsTracker = this.this$0;
|
|
AppStartAnalyticsTracker.access$setAppOpenTimestamp$p(appStartAnalyticsTracker, Long.valueOf(AppStartAnalyticsTracker.access$getClock$p(appStartAnalyticsTracker).currentTimeMillis()));
|
|
}
|
|
return mutableMapOf;
|
|
}
|
|
}
|