@@ -11096,22 +11096,30 @@ protected void onAttachedToWindow() {
1109611096 if ((mPrivateFlags & REQUEST_TRANSPARENT_REGIONS) != 0) {
1109711097 mParent.requestTransparentRegion(this);
1109811098 }
11099+
1109911100 if ((mPrivateFlags & AWAKEN_SCROLL_BARS_ON_ATTACH) != 0) {
1110011101 initialAwakenScrollBars();
1110111102 mPrivateFlags &= ~AWAKEN_SCROLL_BARS_ON_ATTACH;
1110211103 }
11104+
1110311105 jumpDrawablesToCurrentState();
11106+
1110411107 // Order is important here: LayoutDirection MUST be resolved before Padding
1110511108 // and TextDirection
1110611109 resolveLayoutDirection();
1110711110 resolvePadding();
1110811111 resolveTextDirection();
1110911112 resolveTextAlignment();
11113+
1111011114 clearAccessibilityFocus();
1111111115 if (isFocused()) {
1111211116 InputMethodManager imm = InputMethodManager.peekInstance();
1111311117 imm.focusIn(this);
1111411118 }
11119+
11120+ if (mAttachInfo != null && mDisplayList != null) {
11121+ mAttachInfo.mViewRootImpl.dequeueDisplayList(mDisplayList);
11122+ }
1111511123 }
1111611124
1111711125 /**
@@ -11332,7 +11340,7 @@ protected void onDetachedFromWindow() {
1133211340
1133311341 if (mAttachInfo != null) {
1133411342 if (mDisplayList != null) {
11335- mAttachInfo.mViewRootImpl.invalidateDisplayList (mDisplayList);
11343+ mAttachInfo.mViewRootImpl.enqueueDisplayList (mDisplayList);
1133611344 }
1133711345 mAttachInfo.mViewRootImpl.cancelInvalidate(this);
1133811346 } else {
@@ -12026,7 +12034,6 @@ private DisplayList getDisplayList(DisplayList displayList, boolean isLayer) {
1202612034
1202712035 boolean caching = false;
1202812036 final HardwareCanvas canvas = displayList.start();
12029- int restoreCount = 0;
1203012037 int width = mRight - mLeft;
1203112038 int height = mBottom - mTop;
1203212039
@@ -12659,10 +12666,6 @@ private boolean drawAnimation(ViewGroup parent, long drawingTime,
1265912666 return more;
1266012667 }
1266112668
12662- void setDisplayListProperties() {
12663- setDisplayListProperties(mDisplayList);
12664- }
12665-
1266612669 /**
1266712670 * This method is called by getDisplayList() when a display list is created or re-rendered.
1266812671 * It sets or resets the current value of all properties on that display list (resetting is
0 commit comments