@Override public void onClick(View v) { if (etChangeDomain.getText().length() != 0) { DomainDataStore.saveDomainUrl( DomainDevOptionActivity.this, etChangeDomain.getText().toString()); finish(); } else { Toast.makeText( DomainDevOptionActivity.this, "Domain can not be empty!!!", Toast.LENGTH_LONG) .show(); } }
private String getCurrentDomain() { return DomainDataStore.getDomainUrl(this, defaultDomain); }