- // Load the dummy content specified by the fragment
- // arguments. In a real-world scenario, use a Loader
- // to load content from a content provider.
- String uuid = getArguments().getString(ARG_ITEM_ID);
- if (uuid != null) mProfile =
- MobileLedgerProfile.loadUUIDFromDB(getArguments().getString(ARG_ITEM_ID));
+ int index = getArguments().getInt(ARG_ITEM_ID, -1);
+ if (index != -1) mProfile = Data.profiles.get(index);