25 lines
1,008 B
Java
25 lines
1,008 B
Java
package com.discord.widgets.servers;
|
|
|
|
import android.view.Menu;
|
|
import android.view.MenuItem;
|
|
import com.discord.widgets.servers.WidgetServerSettingsChannels;
|
|
import d0.z.d.m;
|
|
import rx.functions.Action1;
|
|
/* compiled from: WidgetServerSettingsChannels.kt */
|
|
public final class WidgetServerSettingsChannels$configureUI$2<T> implements Action1<Menu> {
|
|
public final /* synthetic */ WidgetServerSettingsChannels.Model $model;
|
|
|
|
public WidgetServerSettingsChannels$configureUI$2(WidgetServerSettingsChannels.Model model) {
|
|
this.$model = model;
|
|
}
|
|
|
|
public final void call(Menu menu) {
|
|
MenuItem findItem = menu.findItem(2131363998);
|
|
m.checkNotNullExpressionValue(findItem, "menu.findItem(R.id.menu_sort_channel)");
|
|
findItem.setVisible(!this.$model.isSorting());
|
|
MenuItem findItem2 = menu.findItem(2131363999);
|
|
m.checkNotNullExpressionValue(findItem2, "menu.findItem(R.id.menu_sort_done)");
|
|
findItem2.setVisible(this.$model.isSorting());
|
|
}
|
|
}
|