diff --git a/mobile/android/base/menu/GeckoMenu.java b/mobile/android/base/menu/GeckoMenu.java index 98930e7a2be..6f27bcedac1 100644 --- a/mobile/android/base/menu/GeckoMenu.java +++ b/mobile/android/base/menu/GeckoMenu.java @@ -107,7 +107,7 @@ public class GeckoMenu extends ListView LayoutParams.FILL_PARENT)); // Attach an adapter. - mAdapter = new MenuItemsAdapter(context); + mAdapter = new MenuItemsAdapter(); setAdapter(mAdapter); setOnItemClickListener(this); @@ -482,7 +482,7 @@ public class GeckoMenu extends ListView private List mItems; - public MenuItemsAdapter(Context context) { + public MenuItemsAdapter() { mItems = new ArrayList(); } diff --git a/mobile/android/base/tests/testShareLink.java.in b/mobile/android/base/tests/testShareLink.java.in index 812b51aeff9..932c2aa1467 100644 --- a/mobile/android/base/tests/testShareLink.java.in +++ b/mobile/android/base/tests/testShareLink.java.in @@ -157,7 +157,7 @@ public class testShareLink extends BaseTest { ArrayList displayedOptions = new ArrayList(); ListView shareMenu = getDisplayedShareList(); for (int i = 0; i < shareMenu.getAdapter().getCount();i++) { - View shareItem = shareMenu.getAdapter().getView(i, null, null); + View shareItem = shareMenu.getAdapter().getView(i, null, shareMenu); if (shareItem instanceof android.widget.TextView) { displayedOptions.add(((android.widget.TextView)shareItem).getText().toString()); }