Use the correct anchor for the dropdown menu.
Bug:2953515
Now that b/3067895 has been fixed, we can put the dropdown
in the desired location.
Change-Id: Iec4967ce32113a4d60efd120af6d61cc0fd3181b
diff --git a/src/com/android/browser/AddBookmarkPage.java b/src/com/android/browser/AddBookmarkPage.java
index 1292bf6..f8957c9 100644
--- a/src/com/android/browser/AddBookmarkPage.java
+++ b/src/com/android/browser/AddBookmarkPage.java
@@ -229,10 +229,7 @@
finish();
}
} else if (v == mFolder) {
- // FIXME: We want to use mFolder as an anchor, but cannot until we
- // fix the issue that the PopupMenu will not extend past the edge of
- // the dialog.
- PopupMenu popup = new PopupMenu(this, mFakeTitle);
+ PopupMenu popup = new PopupMenu(this, mFolder);
popup.getMenuInflater().inflate(R.menu.folder_choice,
popup.getMenu());
popup.setOnMenuItemClickListener(this);