Skip to content

Commit

Permalink
Merge pull request #1587 from ayeung/timob-7685
Browse files Browse the repository at this point in the history
TIMOB-7685:Android: HW window: view does not show on 3.x devices
  • Loading branch information
marshall committed Mar 7, 2012
2 parents a9ddade + 58859cf commit d732d4d
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import android.graphics.PixelFormat;
import android.os.Build;
import android.os.Message;
import android.view.View;

@Kroll.proxy(propertyAccessors={
TiC.PROPERTY_EXIT_ON_CLOSE,
Expand Down Expand Up @@ -393,6 +394,14 @@ public void run() {
{
waitingForOpen = null;
}

View nativeView = view.getNativeView();

// Make sure we draw the view during the layout pass. This does not seem to cause another layout pass. We need
// to force the view to be drawn due to TIMOB-7685
if (nativeView != null) {
nativeView.postInvalidate();
}
}

@Kroll.method
Expand Down

0 comments on commit d732d4d

Please sign in to comment.