package com.epson.cameracopy.ui;

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

import epson.print.R;


/* 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) {
        mActivity = folderSelectActivity;
        mMenuInflater = mActivity.getMenuInflater();
        mMenuMode = i;
    }

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

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