public void subscribeSms(View view) { this.inputMethodManager.hideSoftInputFromWindow(this.sms.getWindowToken(), 0); if (this.sms.getText().length() < 10) { this.displaySmsAlert(); } else { MessageBoard.instance().subscribeSms(this.sms.getText().toString()); Toast.makeText(this, Constants.CONFIRM_SUBSCRIPTION_MESSAGE, Toast.LENGTH_LONG).show(); } }
public void subscribeEmail(View view) { this.inputMethodManager.hideSoftInputFromWindow(this.email.getWindowToken(), 0); MessageBoard.instance().subscribeEmail(this.email.getText().toString()); Toast.makeText(this, Constants.CONFIRM_SUBSCRIPTION_MESSAGE, Toast.LENGTH_LONG).show(); }
public void post(View view) { this.inputMethodManager.hideSoftInputFromWindow(this.message.getWindowToken(), 0); MessageBoard.instance().post(this.message.getText().toString()); }