Merge "Check for mAttachInfo nullness when getting the autofillable drawable." into oc-dev

am: 83478acb87

Change-Id: I927894efbe0dbe506b18d42cd1840596299a0270
This commit is contained in:
Felipe Leme
2017-05-16 19:49:35 +00:00
committed by android-build-merger

View File

@@ -20506,6 +20506,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
* @throws IllegalStateException if the drawable could not be found.
*/
@Nullable private Drawable getAutofilledDrawable() {
if (mAttachInfo == null) {
return null;
}
// Lazily load the isAutofilled drawable.
if (mAttachInfo.mAutofilledDrawable == null) {
Context rootContext = getRootView().getContext();