diff options
author | Tor Norbye <tnorbye@google.com> | 2012-05-31 20:14:15 -0700 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2012-05-31 20:14:15 -0700 |
commit | 42411b31ac4969627db1e756100a0294b4990c31 (patch) | |
tree | bfee946afa289c6d6f8d3c4a2292d8c5ee01a264 | |
parent | 9e330e43a001845dbb21285f17d1afa28369fdcd (diff) | |
download | sdk-42411b31ac4969627db1e756100a0294b4990c31.zip sdk-42411b31ac4969627db1e756100a0294b4990c31.tar.gz sdk-42411b31ac4969627db1e756100a0294b4990c31.tar.bz2 |
Fix Linux first-time rendering
On Linux, the first time a screen size or theme is rendered, the wrong
image is shown (until the scene is re-rendered). The reason for this
is that the first time, the palette previews are generated. And this
has the side-effect of replacing the current render session for the
editor with the most recent render image from the palette preview.
The fix is simple: After rendering previews, trigger another render.
Change-Id: Ic00fa8b2703c4ce8ad4068412d5eea7b0b9f093c
-rw-r--r-- | eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/PreviewIconFactory.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/PreviewIconFactory.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/PreviewIconFactory.java index e80ad4a..be7ceb8 100644 --- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/PreviewIconFactory.java +++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/PreviewIconFactory.java @@ -363,6 +363,8 @@ public class PreviewIconFactory { } } + mPalette.getEditor().recomputeLayout(); + return true; } |