private String getCrimeReport() { String solvedString = null; if (mCrime.ismSolved()) { solvedString = getString(R.string.crime_report_solved); } else { solvedString = getString(R.string.crime_report_unresolved); } String dateFormat = "EEE, MMM dd"; String dateString = DateFormat.format(dateFormat, mCrime.getmDate()).toString(); String suspect = mCrime.getSuspect(); if (suspect == null) { suspect = getString(R.string.crime_report_no_suspect); } else { suspect = getString(R.string.crime_report_suspect, suspect); } String report = getString(R.string.crime_report, mCrime.getmTitle(), dateString, solvedString, suspect); return report; }
private void updateDate() { mDateButton.setText(mCrime.getmDate().toString()); }