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

54 lines
2.2 KiB
Java

package c.b.a.a;
import android.widget.FrameLayout;
import android.widget.ImageView;
import androidx.appcompat.widget.AppCompatImageButton;
import com.lytefast.flexinput.R;
import com.lytefast.flexinput.fragment.FlexInputFragment;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.jvm.functions.Function1;
import kotlin.reflect.KProperty;
/* compiled from: FlexInputFragment.kt */
public final class k extends o implements Function1<Boolean, Boolean> {
public final /* synthetic */ FlexInputFragment this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public k(FlexInputFragment flexInputFragment) {
super(1);
this.this$0 = flexInputFragment;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public /* bridge */ /* synthetic */ Boolean invoke(Boolean bool) {
invoke(bool.booleanValue());
return Boolean.TRUE;
}
public final boolean invoke(boolean z2) {
FlexInputFragment flexInputFragment = this.this$0;
KProperty[] kPropertyArr = FlexInputFragment.i;
FrameLayout frameLayout = flexInputFragment.j().k;
m.checkNotNullExpressionValue(frameLayout, "binding.expressionTrayContainer");
int i = 8;
frameLayout.setVisibility(8);
FlexInputFragment.h(this.this$0, false);
ImageView imageView = this.this$0.j().j;
m.checkNotNullExpressionValue(imageView, "binding.expressionBtnBadge");
if (z2) {
i = 0;
}
imageView.setVisibility(i);
this.this$0.j().i.setImageResource(z2 ? R.d.ic_expression_icon_cutout_24dp : R.d.ic_emoji_24dp);
AppCompatImageButton appCompatImageButton = this.this$0.j().i;
m.checkNotNullExpressionValue(appCompatImageButton, "binding.expressionBtn");
appCompatImageButton.setContentDescription(this.this$0.getString(R.g.toggle_emoji_keyboard));
FrameLayout frameLayout2 = this.this$0.j().g;
m.checkNotNullExpressionValue(frameLayout2, "binding.defaultWindowInsetsHandler");
frameLayout2.setVisibility(0);
return true;
}
}