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

import android.content.ComponentName;
import android.content.ServiceConnection;
import android.os.IBinder;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.gallery.stub.a.a;
import com.tencent.mm.sdk.platformtools.ab;

class AlbumPreviewUI$1 implements ServiceConnection {
    final /* synthetic */ AlbumPreviewUI mPO;

    AlbumPreviewUI$1(AlbumPreviewUI albumPreviewUI) {
        this.mPO = albumPreviewUI;
    }

    public final void onServiceConnected(ComponentName componentName, IBinder iBinder) {
        AppMethodBeat.i(21386);
        ab.i("MicroMsg.AlbumPreviewUI", "onServiceConnected");
        AlbumPreviewUI.a(this.mPO, a.B(iBinder));
        if (AlbumPreviewUI.a(this.mPO) != null) {
            AlbumPreviewUI.a(this.mPO).mOG = AlbumPreviewUI.b(this.mPO);
        }
        AppMethodBeat.o(21386);
    }

    public final void onServiceDisconnected(ComponentName componentName) {
        AppMethodBeat.i(21387);
        ab.i("MicroMsg.AlbumPreviewUI", "onServiceDisconnected");
        AlbumPreviewUI.a(this.mPO, null);
        AppMethodBeat.o(21387);
    }
}
