From e29fbd3dba1bf4a1c1d41ffd0cedc5bfd8d75ec2 Mon Sep 17 00:00:00 2001 From: eusourafael Date: Sun, 19 Nov 2017 21:04:11 +0100 Subject: [PATCH] Update MainActivity.java --- .../main/java/com/example/android/sunshine/MainActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/S03.01-Exercise-RecyclerView/app/src/main/java/com/example/android/sunshine/MainActivity.java b/S03.01-Exercise-RecyclerView/app/src/main/java/com/example/android/sunshine/MainActivity.java index ad6d2249f9..203136d92a 100755 --- a/S03.01-Exercise-RecyclerView/app/src/main/java/com/example/android/sunshine/MainActivity.java +++ b/S03.01-Exercise-RecyclerView/app/src/main/java/com/example/android/sunshine/MainActivity.java @@ -244,7 +244,7 @@ public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.action_refresh) { - // TODO (46) Instead of setting the text to "", set the adapter to null before refreshing + // TODO (46) Instead of setting the text to "", set the weather data (mForecastAdapter.setWeatherData) to null before refreshing mWeatherTextView.setText(""); loadWeatherData(); return true; @@ -252,4 +252,4 @@ public boolean onOptionsItemSelected(MenuItem item) { return super.onOptionsItemSelected(item); } -} \ No newline at end of file +}