package ῲ.ݜ;

import android.media.browse.MediaBrowser;
import android.os.Parcel;
import android.service.media.MediaBrowserService;
import java.util.ArrayList;
import java.util.List;

/* renamed from: ῲ.ݜ.ᨨ  reason: contains not printable characters */
/* compiled from: MediaBrowserServiceCompatApi21 */
public class C1594<T> {

    /* renamed from: K  reason: contains not printable characters */
    public MediaBrowserService.Result f5774;

    public C1594(MediaBrowserService.Result result) {
        this.f5774 = result;
    }

    /* JADX DEBUG: Multi-variable search result rejected for r0v2, resolved type: android.service.media.MediaBrowserService$Result */
    /* JADX DEBUG: Multi-variable search result rejected for r0v3, resolved type: android.service.media.MediaBrowserService$Result */
    /* JADX WARN: Multi-variable type inference failed */
    /* renamed from: K  reason: contains not printable characters */
    public void m4148(T t) {
        ArrayList arrayList = null;
        if (t instanceof List) {
            MediaBrowserService.Result result = this.f5774;
            T<Parcel> t2 = t;
            if (t2 != null) {
                arrayList = new ArrayList();
                for (Parcel parcel : t2) {
                    parcel.setDataPosition(0);
                    arrayList.add(MediaBrowser.MediaItem.CREATOR.createFromParcel(parcel));
                    parcel.recycle();
                }
            }
            result.sendResult(arrayList);
        } else if (t instanceof Parcel) {
            T t3 = t;
            t3.setDataPosition(0);
            this.f5774.sendResult(MediaBrowser.MediaItem.CREATOR.createFromParcel(t3));
            t3.recycle();
        } else {
            this.f5774.sendResult(null);
        }
    }
}
