+ case R.id.history:
+ // Gte the `WebBackForwardList`.
+ WebBackForwardList webBackForwardList = mainWebView.copyBackForwardList();
+
+ // Show the `UrlHistory` `AlertDialog` and name this instance `R.string.history`. `this` is the `Context`.
+ AppCompatDialogFragment urlHistoryDialogFragment = UrlHistory.loadBackForwardList(this, webBackForwardList);
+ urlHistoryDialogFragment.show(getSupportFragmentManager(), getResources().getString(R.string.history));
+ break;
+