Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void verifyExtras(Bundle extras, String[] mArray) {
- try {
- String extra = extras.getString("item");
- if(extra != null) {
- if(!extra.equals(mArray[0])) {
- if(mFilter.equals(mArray[mArray.length-1])) {
- getActivity().getSupportFragmentManager().beginTransaction()
- .replace(R.id.fragment_placeholder, new AboutFragment(), "B")
- .commit();
- } else {
- mFilter = extra;
- }
- }
- } else if(mFilter.equals(mArray[0])) {
- mFilter = null;
- }
- } catch (Exception e) {
- mFilter = null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment