- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
49 lines
2.2 KiB
Java
49 lines
2.2 KiB
Java
package androidx.activity;
|
|
|
|
import android.view.View;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.sequences.Sequence;
|
|
import kotlin.sequences.SequencesKt__SequencesKt;
|
|
import kotlin.sequences.SequencesKt___SequencesKt;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class ViewTreeFullyDrawnReporterOwner {
|
|
public static final void set(View view, FullyDrawnReporterOwner fullyDrawnReporterOwner) {
|
|
Intrinsics.checkNotNullParameter(view, "<this>");
|
|
Intrinsics.checkNotNullParameter(fullyDrawnReporterOwner, "fullyDrawnReporterOwner");
|
|
view.setTag(R.id.report_drawn, fullyDrawnReporterOwner);
|
|
}
|
|
|
|
public static final FullyDrawnReporterOwner get(View view) {
|
|
Sequence generateSequence;
|
|
Sequence mapNotNull;
|
|
Object firstOrNull;
|
|
Intrinsics.checkNotNullParameter(view, "<this>");
|
|
generateSequence = SequencesKt__SequencesKt.generateSequence(view, new Function1() { // from class: androidx.activity.ViewTreeFullyDrawnReporterOwner$findViewTreeFullyDrawnReporterOwner$1
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public final View invoke(View it) {
|
|
Intrinsics.checkNotNullParameter(it, "it");
|
|
Object parent = it.getParent();
|
|
if (parent instanceof View) {
|
|
return (View) parent;
|
|
}
|
|
return null;
|
|
}
|
|
});
|
|
mapNotNull = SequencesKt___SequencesKt.mapNotNull(generateSequence, new Function1() { // from class: androidx.activity.ViewTreeFullyDrawnReporterOwner$findViewTreeFullyDrawnReporterOwner$2
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public final FullyDrawnReporterOwner invoke(View it) {
|
|
Intrinsics.checkNotNullParameter(it, "it");
|
|
Object tag = it.getTag(R.id.report_drawn);
|
|
if (tag instanceof FullyDrawnReporterOwner) {
|
|
return (FullyDrawnReporterOwner) tag;
|
|
}
|
|
return null;
|
|
}
|
|
});
|
|
firstOrNull = SequencesKt___SequencesKt.firstOrNull(mapNotNull);
|
|
return (FullyDrawnReporterOwner) firstOrNull;
|
|
}
|
|
}
|