- // `historyArrayList` and `currentPageId` pass information from `onCreate()` to `onCreateDialog()`.
- private final ArrayList<History> historyArrayList = new ArrayList<>();
- private int currentPageId;
-
- public static UrlHistoryDialog loadBackForwardList(Context context, WebBackForwardList webBackForwardList) {
- // Create an arguments bundle.
- Bundle argumentsBundle = new Bundle();
-
- // Store the current page index.
- int currentPageIndex = webBackForwardList.getCurrentIndex();
-
- // Setup the URL array list and the icon array list.
- ArrayList<String> urlArrayList = new ArrayList<>();
- ArrayList<String> iconBase64StringArrayList = new ArrayList<>();
+ // The navigate history listener is used in `onAttach()` and `onCreateDialog()`.
+ private NavigateHistoryListener navigateHistoryListener;