OSDN Git Service

Reset the ProjectCallback when the rendering target changes.
authorXavier Ducrohet <xav@android.com>
Mon, 17 Jan 2011 03:33:41 +0000 (19:33 -0800)
committerXavier Ducrohet <xav@android.com>
Mon, 17 Jan 2011 03:36:23 +0000 (19:36 -0800)
commitfe3168767e6718bc1a205b0eca6f0a49d0eed21c
tree84dc6efdd68bf29365c3d52e843e394ec441eb54
parenta0340fdf211a94d4d96a9e063386b0eccae9b74c
Reset the ProjectCallback when the rendering target changes.

This is only done if the layout has custom views. This is
because ProjectCallback caches classes, but they are loaded
using the layoutlib classloader for type provided by the
layoutlib.

Since the rendering target changed, the layoutlib changed,
and we need a version of the custom view classes that uses
the base types of the new layoutlib jar.

Change-Id: Ia3e2a8f65d73dab2769d8c7686f970e647432ed3
http://code.google.com/p/android/issues/detail?id=14061
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/GraphicalEditorPart.java