Don't use AbsoluteLayout.LayoutParams as it's deprecated (r=mfinkle)

Use the equivalent RelativeLayout.LayoutParams instead.
This commit is contained in:
Lucas Rocha 2011-10-13 14:41:57 +01:00
parent dab6c448b5
commit e2b96d3f5e

View File

@ -1357,10 +1357,9 @@ public class GeckoAppShell
getMainHandler().post(new Runnable() {
public void run() {
AbsoluteLayout.LayoutParams lp = new AbsoluteLayout.LayoutParams((int)w,
(int)h,
(int)x,
(int)y);
RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams((int) w, (int) h);
lp.leftMargin = (int) x;
lp.topMargin = (int) y;
if (GeckoApp.geckoLayout.indexOfChild(view) == -1) {
view.setWillNotDraw(false);