package com.epson.cameracopy.p006ui;

import android.view.Menu;
import android.view.MenuInflater;


/* renamed from: com.epson.cameracopy.ui.MenuControl */
/* compiled from: FolderSelectActivity */
class MenuControl {
    static final int MENU_HIDE = 0;
    static final int MENU_NEW = 2;
    static final int MENU_OK = 1;
    static final int MENU_OK_CANCEL = 4;
    static final int MENU_OK_NEW = 3;
    private final FolderSelectActivity mActivity;
    private final MenuInflater mMenuInflater;
    private int mMenuMode = -1;

    MenuControl(FolderSelectActivity folderSelectActivity, int i) {
        this.mActivity = folderSelectActivity;
        this.mMenuInflater = this.mActivity.getMenuInflater();
        this.mMenuMode = i;
    }

    public void CreateMenu(Menu menu) {
        if (this.mMenuMode != 0) {
            this.mMenuInflater.inflate(R.C2138menu.menu_ok, menu);
        }
    }

    public void ChangeMenu(int i) {
        if (this.mMenuMode != i) {
            this.mMenuMode = i;
            this.mActivity.invalidateOptionsMenu();
        }
    }
}
