X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=src%2Fcom%2Fhughes%2Fandroid%2Fdictionary%2FDictionaryManagerActivity.java;h=f136dbdb7e95d949f685f94dfce1cb210172f9cc;hb=024aa6ab96c467bbf234826ebc57c065f1db48f6;hp=dab77f5d776bad583940fbe6e134e77d8fd53407;hpb=66affc8fb8939878b1abdb7d15da1c5d60ccc0fe;p=Dictionary.git diff --git a/src/com/hughes/android/dictionary/DictionaryManagerActivity.java b/src/com/hughes/android/dictionary/DictionaryManagerActivity.java index dab77f5..f136dbd 100644 --- a/src/com/hughes/android/dictionary/DictionaryManagerActivity.java +++ b/src/com/hughes/android/dictionary/DictionaryManagerActivity.java @@ -136,19 +136,19 @@ public class DictionaryManagerActivity extends ListActivity { builder.setCancelable(false); final WebView webView = new WebView(getApplicationContext()); webView.loadData(StringUtil.readToString(getResources().openRawResource(R.raw.whats_new)), "text/html", "utf-8"); - builder.setView(webView); builder.setNegativeButton(android.R.string.ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { dialog.cancel(); } }); - final AlertDialog alert = builder.create(); WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams(); - layoutParams.copyFrom(alert.getWindow().getAttributes()); layoutParams.width = WindowManager.LayoutParams.FILL_PARENT; layoutParams.height = WindowManager.LayoutParams.FILL_PARENT; + webView.setLayoutParams(layoutParams); + builder.setView(webView); + final AlertDialog alert = builder.create(); + alert.getWindow().setLayout(WindowManager.LayoutParams.FILL_PARENT, WindowManager.LayoutParams.FILL_PARENT); alert.show(); - alert.getWindow().setAttributes(layoutParams); prefs.edit().putString(C.THANKS_FOR_UPDATING_VERSION, thanksForUpdatingLatestVersion).commit(); } }