discord-jadx/app/src/main/java/com/discord/utilities/toolbar/ToolbarUtilsKt$positionUnre...

28 lines
1.0 KiB
Java

package com.discord.utilities.toolbar;
import android.view.View;
import com.discord.utilities.dimen.DimenUtils;
import d0.z.d.m;
/* compiled from: View.kt */
public final class ToolbarUtilsKt$positionUnreadCountView$$inlined$doOnLayout$1 implements View.OnLayoutChangeListener {
public final /* synthetic */ View $view$inlined;
public ToolbarUtilsKt$positionUnreadCountView$$inlined$doOnLayout$1(View view) {
this.$view$inlined = view;
}
@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);
int dpToPixels = DimenUtils.dpToPixels(2);
int right = view.getRight();
int bottom = view.getBottom();
View view2 = this.$view$inlined;
float f = (float) 2;
float f2 = (float) dpToPixels;
view2.setX((((float) right) / f) + f2);
view2.setY((((float) bottom) / f) + f2);
}
}