package com.tencent.mm.plugin.subapp.ui.gallery;

import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.bo;

class GestureGalleryUI$4 implements OnItemSelectedListener {
    final /* synthetic */ GestureGalleryUI sum;

    GestureGalleryUI$4(GestureGalleryUI gestureGalleryUI) {
        this.sum = gestureGalleryUI;
    }

    public final void onItemSelected(AdapterView<?> adapterView, View view, int i, long j) {
        AppMethodBeat.i(25378);
        GestureGalleryUI.c(this.sum, i);
        this.sum.setMMTitle((GestureGalleryUI.p(this.sum) + 1) + " / " + GestureGalleryUI.q(this.sum).size());
        ab.d("MicroMsg.GestureGalleryUI", "pos:".concat(String.valueOf(i)));
        GestureGalleryUI.c(this.sum, GestureGalleryUI.t(this.sum).c((String) GestureGalleryUI.q(this.sum).get(i), GestureGalleryUI.r(this.sum), i, GestureGalleryUI.s(this.sum)));
        if (bo.isNullOrNil(GestureGalleryUI.c(this.sum))) {
            GestureGalleryUI.c(this.sum, (String) GestureGalleryUI.q(this.sum).get(i));
        }
        GestureGalleryUI.e(this.sum);
        AppMethodBeat.o(25378);
    }

    public final void onNothingSelected(AdapterView<?> adapterView) {
    }
}
