private void clearLog() { cache.clearOfflineLog(); setDefaultValues(); setType(typeSelected); setDate(date); final EditText logView = (EditText) findViewById(R.id.log); logView.setText(StringUtils.EMPTY); final EditText logPasswordView = (EditText) findViewById(R.id.log_password); logPasswordView.setText(StringUtils.EMPTY); updateImageButton(); showToast(res.getString(R.string.info_log_cleared)); }