Restoring mLayout has private in TextView

Change-Id: I3424b2469b8b566e604247694a9bf6f4bc0e6250
This commit is contained in:
Gilles Debunne
2011-11-28 18:03:56 -08:00
parent 043545a3c0
commit c786952c9d

View File

@@ -135,7 +135,7 @@ public class BubbleTextView extends TextView {
mPressedOrFocusedBackground = null;
}
if (isFocused()) {
if (mLayout == null) {
if (getLayout() == null) {
// In some cases, we get focus before we have been layed out. Set the
// background to null so that it will get created when the view is drawn.
mPressedOrFocusedBackground = null;