Check null of getActivity() when needed.

Some bloadcast is thrown when Activity isn't ready.

onResume() correctly update time so we don't need to
call updateTimeAndDateDisplay() when Activity is null.

Change-Id: Iea8feaa1111bb87e66462ed0f95fde9d07f2c68d
1 file changed