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

am: bf63615ca5

Change-Id: Iaa7281637aa36cad4d478b73e8daa79dd2d29af3
This commit is contained in:
Felipe Leme
2017-05-16 20:01:09 +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();