35 lines
1.5 KiB
Java
35 lines
1.5 KiB
Java
|
package com.discord.widgets.servers;
|
||
|
|
||
|
import com.discord.utilities.mg_recycler.CategoricalDragAndDropAdapter;
|
||
|
import com.discord.widgets.servers.SettingsChannelListAdapter;
|
||
|
import d0.z.d.m;
|
||
|
import d0.z.d.o;
|
||
|
import kotlin.jvm.functions.Function1;
|
||
|
/* compiled from: SettingsChannelListAdapter.kt */
|
||
|
public final class SettingsChannelListAdapter$computeChangedPositions$3 extends o implements Function1<CategoricalDragAndDropAdapter.Payload, Boolean> {
|
||
|
public static final SettingsChannelListAdapter$computeChangedPositions$3 INSTANCE = new SettingsChannelListAdapter$computeChangedPositions$3();
|
||
|
|
||
|
public SettingsChannelListAdapter$computeChangedPositions$3() {
|
||
|
super(1);
|
||
|
}
|
||
|
|
||
|
/* 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(CategoricalDragAndDropAdapter.Payload payload) {
|
||
|
return Boolean.valueOf(invoke(payload));
|
||
|
}
|
||
|
|
||
|
public final boolean invoke(CategoricalDragAndDropAdapter.Payload payload) {
|
||
|
m.checkNotNullParameter(payload, "item");
|
||
|
int type = payload.getType();
|
||
|
if (type == 0) {
|
||
|
return ((SettingsChannelListAdapter.ChannelItem) payload).getCanManageCategoryOfChannel();
|
||
|
}
|
||
|
if (type != 1) {
|
||
|
return false;
|
||
|
}
|
||
|
return ((SettingsChannelListAdapter.CategoryItem) payload).getCanManageCategory();
|
||
|
}
|
||
|
}
|