2021-08-03 07:33:18 +00:00
|
|
|
package com.discord.widgets.directories;
|
|
|
|
|
|
|
|
import android.text.Editable;
|
|
|
|
import android.text.TextWatcher;
|
2021-10-15 06:18:26 +00:00
|
|
|
import c0.z.d.m;
|
2021-08-03 07:33:18 +00:00
|
|
|
import com.google.android.material.floatingactionbutton.FloatingActionButton;
|
|
|
|
/* compiled from: TextView.kt */
|
2021-08-28 06:29:07 +00:00
|
|
|
public final class WidgetDirectoriesSearch$onViewBound$$inlined$apply$lambda$1 implements TextWatcher {
|
2021-08-03 07:33:18 +00:00
|
|
|
public final /* synthetic */ WidgetDirectoriesSearch this$0;
|
|
|
|
|
2021-08-28 06:29:07 +00:00
|
|
|
public WidgetDirectoriesSearch$onViewBound$$inlined$apply$lambda$1(WidgetDirectoriesSearch widgetDirectoriesSearch) {
|
2021-08-03 07:33:18 +00:00
|
|
|
this.this$0 = widgetDirectoriesSearch;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // android.text.TextWatcher
|
|
|
|
public void afterTextChanged(Editable editable) {
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // android.text.TextWatcher
|
|
|
|
public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // android.text.TextWatcher
|
|
|
|
public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
|
|
|
|
FloatingActionButton floatingActionButton = this.this$0.getBinding().f;
|
|
|
|
m.checkNotNullExpressionValue(floatingActionButton, "binding.search");
|
|
|
|
WidgetDirectoriesSearchViewModel viewModel = this.this$0.getViewModel();
|
|
|
|
if (charSequence == null) {
|
|
|
|
charSequence = "";
|
|
|
|
}
|
|
|
|
floatingActionButton.setVisibility(viewModel.shouldNotSearch(charSequence) ^ true ? 0 : 8);
|
|
|
|
}
|
|
|
|
}
|