package com.tencent.mm.pluginsdk.ui.tools;

import android.view.MenuItem;
import android.view.MenuItem.OnMenuItemClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.kernel.g;
import com.tencent.mm.pluginsdk.ui.tools.FileExplorerUI.a;

class FileExplorerUI$1 implements OnMenuItemClickListener {
    final /* synthetic */ FileExplorerUI vtZ;

    FileExplorerUI$1(FileExplorerUI fileExplorerUI) {
        this.vtZ = fileExplorerUI;
    }

    public final boolean onMenuItemClick(MenuItem menuItem) {
        AppMethodBeat.i(105840);
        if (a.a(FileExplorerUI.a(this.vtZ)) != null) {
            if (1 == FileExplorerUI.b(this.vtZ)) {
                FileExplorerUI.a(this.vtZ, a.a(FileExplorerUI.a(this.vtZ)));
            } else if (FileExplorerUI.b(this.vtZ) == 0) {
                FileExplorerUI.b(this.vtZ, a.a(FileExplorerUI.a(this.vtZ)));
            }
            FileExplorerUI.a(this.vtZ).g(a.a(FileExplorerUI.a(this.vtZ)).getParentFile(), a.a(FileExplorerUI.a(this.vtZ)));
            FileExplorerUI.a(this.vtZ).notifyDataSetChanged();
            FileExplorerUI.c(this.vtZ).setSelection(0);
            FileExplorerUI.dlo();
            AppMethodBeat.o(105840);
        } else {
            g.RP().Ry().set(131074, FileExplorerUI.d(this.vtZ).getAbsolutePath());
            g.RP().Ry().set(131073, FileExplorerUI.e(this.vtZ).getAbsolutePath());
            this.vtZ.finish();
            AppMethodBeat.o(105840);
        }
        return true;
    }
}
