discord-jadx/app/src/main/java/c/a/j/b.java

56 lines
1.9 KiB
Java

package c.a.j;
import android.view.View;
import androidx.core.view.ViewCompat;
import com.discord.floating_view_manager.FloatingViewGravity;
import d0.z.d.m;
/* compiled from: View.kt */
public final class b implements View.OnLayoutChangeListener {
public final /* synthetic */ a i;
public final /* synthetic */ View j;
public final /* synthetic */ View k;
public final /* synthetic */ FloatingViewGravity l;
public final /* synthetic */ int m;
public final /* synthetic */ int n;
/* compiled from: View.kt */
public static final class a implements View.OnLayoutChangeListener {
public final /* synthetic */ b i;
public a(b bVar) {
this.i = bVar;
}
@Override // android.view.View.OnLayoutChangeListener
public void onLayoutChange(View view, int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8) {
m.checkParameterIsNotNull(view, "view");
view.removeOnLayoutChangeListener(this);
b bVar = this.i;
a.a(bVar.i, bVar.k, bVar.j, bVar.l, bVar.m, bVar.n);
this.i.k.setVisibility(0);
}
}
public b(a aVar, View view, View view2, FloatingViewGravity floatingViewGravity, int i, int i2) {
this.i = aVar;
this.j = view;
this.k = view2;
this.l = floatingViewGravity;
this.m = i;
this.n = i2;
}
@Override // android.view.View.OnLayoutChangeListener
public void onLayoutChange(View view, int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8) {
m.checkParameterIsNotNull(view, "view");
view.removeOnLayoutChangeListener(this);
View view2 = this.j;
if (!ViewCompat.isLaidOut(view2) || view2.isLayoutRequested()) {
view2.addOnLayoutChangeListener(new a(this));
return;
}
a.a(this.i, this.k, this.j, this.l, this.m, this.n);
this.k.setVisibility(0);
}
}