package o;

import android.app.Notification;
import android.content.Context;
import android.graphics.Bitmap;
import android.os.Build;
import androidx.core.graphics.drawable.IconCompat;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class CS extends Eu0 {
    public IconCompat b;
    public IconCompat c;
    public boolean d;

    @Override // o.Eu0
    public final void h(S60 s60) {
        Bitmap bitmapA;
        Notification.Builder builder = (Notification.Builder) s60.n;
        Context context = (Context) s60.m;
        Notification.BigPictureStyle bigContentTitle = new Notification.BigPictureStyle(builder).setBigContentTitle(null);
        IconCompat iconCompat = this.b;
        if (iconCompat != null) {
            if (Build.VERSION.SDK_INT >= 31) {
                BS.a(bigContentTitle, iconCompat.h(context));
            } else if (iconCompat.e() == 1) {
                IconCompat iconCompat2 = this.b;
                int i = iconCompat2.a;
                if (i == -1) {
                    Object obj = iconCompat2.b;
                    bitmapA = obj instanceof Bitmap ? (Bitmap) obj : null;
                } else if (i == 1) {
                    bitmapA = (Bitmap) iconCompat2.b;
                } else {
                    if (i != 5) {
                        throw new IllegalStateException("called getBitmap() on " + iconCompat2);
                    }
                    bitmapA = IconCompat.a((Bitmap) iconCompat2.b, true);
                }
                bigContentTitle = bigContentTitle.bigPicture(bitmapA);
            }
        }
        if (this.d) {
            IconCompat iconCompat3 = this.c;
            if (iconCompat3 == null) {
                bigContentTitle.bigLargeIcon((Bitmap) null);
            } else {
                AS.a(bigContentTitle, iconCompat3.h(context));
            }
        }
        if (Build.VERSION.SDK_INT >= 31) {
            BS.c(bigContentTitle, false);
            BS.b(bigContentTitle, null);
        }
    }

    @Override // o.Eu0
    public final String j() {
        return "androidx.core.app.NotificationCompat$BigPictureStyle";
    }
}
