// `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) {
// `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) {