/**
   * Read the preferences, show or hide the total price, read and compress the wishlist, and load
   * prices
   */
  @Override
  public void onResume() {
    super.onResume();

    /* Get the relevant preferences */
    mPriceSetting = Integer.parseInt(getFamiliarActivity().mPreferenceAdapter.getTradePrice());
    mShowIndividualPrices =
        getFamiliarActivity().mPreferenceAdapter.getShowIndividualWishlistPrices();
    mShowTotalWishlistPrice = getFamiliarActivity().mPreferenceAdapter.getShowTotalWishlistPrice();
    mShowCardInfo = getFamiliarActivity().mPreferenceAdapter.getVerboseWishlist();

    /* Clear, then read the wishlist. This is done in onResume() in case the user quick-searched for a card, and
     * added it to the wishlist from the CardViewFragment */
    mCompressedWishlist.clear();
    readAndCompressWishlist(null);

    /* Show the total price, if desired */
    if (mShowTotalWishlistPrice) {
      mTotalPriceField.setVisibility(View.VISIBLE);
      mTotalPriceDivider.setVisibility(View.VISIBLE);
    } else {
      mTotalPriceField.setVisibility(View.GONE);
      mTotalPriceDivider.setVisibility(View.GONE);
    }

    /* Tell the adapter to redraw */
    mWishlistAdapter.notifyDataSetChanged();
  }
 /**
  * Create the options menu
  *
  * @param menu The options menu in which you place your items.
  * @param inflater The inflater to use to inflate the menu
  */
 @Override
 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
   super.onCreateOptionsMenu(menu, inflater);
   inflater.inflate(R.menu.wishlist_menu, menu);
 }