Don't use AbsoluteLayout.LayoutParams as it's deprecated (r=mfinkle)
Use the equivalent RelativeLayout.LayoutParams instead.
This commit is contained in:
@@ -1357,10 +1357,9 @@ public class GeckoAppShell
|
|||||||
|
|
||||||
getMainHandler().post(new Runnable() {
|
getMainHandler().post(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
AbsoluteLayout.LayoutParams lp = new AbsoluteLayout.LayoutParams((int)w,
|
RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams((int) w, (int) h);
|
||||||
(int)h,
|
lp.leftMargin = (int) x;
|
||||||
(int)x,
|
lp.topMargin = (int) y;
|
||||||
(int)y);
|
|
||||||
|
|
||||||
if (GeckoApp.geckoLayout.indexOfChild(view) == -1) {
|
if (GeckoApp.geckoLayout.indexOfChild(view) == -1) {
|
||||||
view.setWillNotDraw(false);
|
view.setWillNotDraw(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user