alexandroid/decompiled/jadx/sources/androidx/appcompat/widget/ThemedSpinnerAdapter.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

56 lines
2 KiB
Java

package androidx.appcompat.widget;
import android.content.Context;
import android.content.res.Resources;
import android.view.LayoutInflater;
import android.widget.SpinnerAdapter;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.view.ContextThemeWrapper;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
/* loaded from: classes.dex */
public interface ThemedSpinnerAdapter extends SpinnerAdapter {
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
public static final class Helper {
private final Context mContext;
private LayoutInflater mDropDownInflater;
private final LayoutInflater mInflater;
public Helper(@NonNull Context context) {
this.mContext = context;
this.mInflater = LayoutInflater.from(context);
}
@NonNull
public LayoutInflater getDropDownViewInflater() {
LayoutInflater layoutInflater = this.mDropDownInflater;
return layoutInflater != null ? layoutInflater : this.mInflater;
}
@Nullable
public Resources.Theme getDropDownViewTheme() {
LayoutInflater layoutInflater = this.mDropDownInflater;
if (layoutInflater == null) {
return null;
}
return layoutInflater.getContext().getTheme();
}
public void setDropDownViewTheme(@Nullable Resources.Theme theme) {
if (theme == null) {
this.mDropDownInflater = null;
} else if (theme.equals(this.mContext.getTheme())) {
this.mDropDownInflater = this.mInflater;
} else {
this.mDropDownInflater = LayoutInflater.from(new ContextThemeWrapper(this.mContext, theme));
}
}
}
@Nullable
Resources.Theme getDropDownViewTheme();
void setDropDownViewTheme(@Nullable Resources.Theme theme);
}