Skip to content

Commit

Permalink
set Weather condition icon to no internet connection/problem if image…
Browse files Browse the repository at this point in the history
… isn't loaded.
  • Loading branch information
akamfoad committed May 15, 2020
1 parent 76c79cb commit 22ecbc2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ protected void onPostExecute(DATA data) {
if (imageData != null && imageData.length > 0) {
Bitmap img = BitmapFactory.decodeByteArray(imageData, 0, imageData.length);
condIcon.setImageBitmap(img);
} else {
condIcon.setImageResource(R.drawable.ic_signal_wifi_off_black_24dp);
}
if (data != null) {
internetErrorLabel.setVisibility(View.GONE);
Expand Down

0 comments on commit 22ecbc2

Please sign in to comment.