/** * *************************************************** * * <p>Called when the fragment is created. * * <p>*************************************************** */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Try to get any common arguments Bundle arguments = getArguments(); if (arguments != null) { mProductIds = arguments.getStringArray(BUNDLE_KEY_PRODUCT_IDS); } }
/** * *************************************************** * * <p>Called when the fragment is on top. * * <p>*************************************************** */ @Override public void onTop() { super.onTop(); getProducts(); }