diff options
author | Raphael <raphael@google.com> | 2011-10-19 14:31:32 -0700 |
---|---|---|
committer | Raphael <raphael@google.com> | 2011-10-19 14:31:32 -0700 |
commit | 4913b95d772c220c3cc40c73c9d07dfa686a3e42 (patch) | |
tree | b5aff8e33b3a6db8c9f1bda37a4fa68aede10ac4 /sdkmanager | |
parent | 9723f9e4da3362b3334ef8e96d280c3887e02bd6 (diff) | |
download | sdk-4913b95d772c220c3cc40c73c9d07dfa686a3e42.zip sdk-4913b95d772c220c3cc40c73c9d07dfa686a3e42.tar.gz sdk-4913b95d772c220c3cc40c73c9d07dfa686a3e42.tar.bz2 |
SDK Manager: fix window resize issue.
SDK Bug: 20939
Incidentally, this also fixes the fact that the window
for the SDK/AVD manager can't be resized at all on Windows
when started from ADT. SWT is quite magical.
Change-Id: I282ebdac3e42e39ee41247de5591cfcb61cd4ac8
Diffstat (limited to 'sdkmanager')
2 files changed, 3 insertions, 3 deletions
diff --git a/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/sdkman2/AvdManagerWindowImpl1.java b/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/sdkman2/AvdManagerWindowImpl1.java index 301239c..61f0140 100755 --- a/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/sdkman2/AvdManagerWindowImpl1.java +++ b/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/sdkman2/AvdManagerWindowImpl1.java @@ -28,9 +28,9 @@ import com.android.sdkuilib.internal.repository.UpdaterPage; import com.android.sdkuilib.internal.repository.UpdaterPage.Purpose;
import com.android.sdkuilib.internal.repository.icons.ImageFactory;
import com.android.sdkuilib.internal.repository.sdkman1.AvdManagerPage;
-import com.android.sdkuilib.repository.AvdManagerWindow.AvdInvocationContext;
import com.android.sdkuilib.repository.ISdkChangeListener;
import com.android.sdkuilib.repository.SdkUpdaterWindow;
+import com.android.sdkuilib.repository.AvdManagerWindow.AvdInvocationContext;
import com.android.sdkuilib.ui.GridDataBuilder;
import com.android.sdkuilib.ui.GridLayoutBuilder;
import com.android.sdkuilib.ui.SwtBaseDialog;
@@ -154,7 +154,7 @@ public class AvdManagerWindowImpl1 { // or a dialog trim when invoked from somewhere else.
int style = SWT.SHELL_TRIM;
if (mContext != AvdInvocationContext.STANDALONE) {
- style = SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL;
+ style |= SWT.APPLICATION_MODAL;
}
mShell = new Shell(mParentShell, style);
diff --git a/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/sdkman2/SdkUpdaterWindowImpl2.java b/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/sdkman2/SdkUpdaterWindowImpl2.java index 6740dbb..7873700 100755 --- a/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/sdkman2/SdkUpdaterWindowImpl2.java +++ b/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/sdkman2/SdkUpdaterWindowImpl2.java @@ -169,7 +169,7 @@ public class SdkUpdaterWindowImpl2 implements ISdkUpdaterWindow { // or a dialog trim when invoked from somewhere else.
int style = SWT.SHELL_TRIM;
if (mContext != SdkInvocationContext.STANDALONE) {
- style = SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL;
+ style |= SWT.APPLICATION_MODAL;
}
mShell = new Shell(mParentShell, style);
|