From a7c785cf1150588ed531da4b81fb6f9a50c8ac26 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Fri, 8 Jan 2010 15:07:21 -0800 Subject: Deprecate fill_parent and introduce match_parent. Bug: #2361749. --- src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/com/android/wallpaper/livepicker') diff --git a/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java b/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java index f63d5a0..a8c91be 100644 --- a/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java +++ b/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java @@ -161,12 +161,12 @@ public class LiveWallpaperPreview extends Activity { Window window = mDialog.getWindow(); WindowManager.LayoutParams lp = window.getAttributes(); - lp.width = WindowManager.LayoutParams.FILL_PARENT; - lp.height = WindowManager.LayoutParams.FILL_PARENT; + lp.width = WindowManager.LayoutParams.MATCH_PARENT; + lp.height = WindowManager.LayoutParams.MATCH_PARENT; window.setType(WindowManager.LayoutParams.TYPE_APPLICATION_MEDIA); mDialog.setContentView(content, new ViewGroup.LayoutParams( - ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT + ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT )); mDialog.show(); } -- cgit v1.2.3