am f0e7e4a9: Merge change 2520 into donut

Merge commit 'f0e7e4a9461ab3daf57ecfec3d25be583380d0d2'

* commit 'f0e7e4a9461ab3daf57ecfec3d25be583380d0d2':
  Cause the icon drawables to animate automatically by calling setVisible
This commit is contained in:
Android (Google) Code Review
2009-05-27 09:16:01 -07:00
committed by The Android Open Source Project

View File

@@ -240,6 +240,14 @@ class SuggestionsAdapter extends ResourceCursorAdapter {
v.setVisibility(View.GONE);
} else {
v.setVisibility(View.VISIBLE);
// This is a hack to get any animated drawables (like a 'working' spinner)
// to animate. You have to setVisible true on an AnimationDrawable to get
// it to start animating, but it must first have been false or else the
// call to setVisible will be ineffective. We need to clear up the story
// about animated drawables in the future, see http://b/1878430.
drawable.setVisible(false, false);
drawable.setVisible(true, false);
}
}