diff options
author | Andrew Sapperstein <asapperstein@google.com> | 2014-11-14 10:20:52 -0800 |
---|---|---|
committer | Andrew Sapperstein <asapperstein@google.com> | 2014-11-14 10:20:52 -0800 |
commit | 307bd804982aa896a2043ed1c557c65cd8269d3f (patch) | |
tree | 8eb3c108b8ea5a9a18a3377a2ff1fc996f4b63c8 /src | |
parent | 05f451df7677dce766b4e6b30ff89e2d3bb0b104 (diff) | |
download | photoviewer-307bd804982aa896a2043ed1c557c65cd8269d3f.tar.gz |
Hide "couldn't load image" on image load.
Fixes b/18358074.
Previously, we never explicitly hid the empty text
when an image was loaded (but it never really mattered
because the text was hidden behind the photo). Now we
always set the visibility to gone.
Change-Id: I35171693021afc2a1552b720f20e88270faa24ee
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/ex/photo/fragments/PhotoViewFragment.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/ex/photo/fragments/PhotoViewFragment.java b/src/com/android/ex/photo/fragments/PhotoViewFragment.java index aa3099a..a943a60 100644 --- a/src/com/android/ex/photo/fragments/PhotoViewFragment.java +++ b/src/com/android/ex/photo/fragments/PhotoViewFragment.java @@ -399,6 +399,7 @@ public class PhotoViewFragment extends Fragment implements mEmptyText.setVisibility(View.VISIBLE); mCallback.onFragmentPhotoLoadComplete(this, false /* success */); } else { + mEmptyText.setVisibility(View.GONE); final Drawable data = result.getDrawable(getResources()); bindPhoto(data); mCallback.onFragmentPhotoLoadComplete(this, true /* success */); |