class UnlockWithPasswordPresenter extends BasePresenter<UnlockWithPasswordContract.View> implements UnlockWithPasswordContract.Presenter {

    @Override
    public void unlock(String password) {
        showLoadingDialog();
        new Thread() {
            @Override
            public void run() {
                if (!WalletManager.getInstance().isValidWallet(mWallet, password)) {
                    mHandler.sendEmptyMessage(MSG_PASSWORD_FAILED);
                    return;
                } else {
                    mHandler.sendEmptyMessage(MSG_OK);
                }
            }
        }.start();
    }

}