ppamorim

Untitled

May 11th, 2014
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.78 KB | None | 0 0
  1. private void verifyExtras(Bundle extras, String[] mArray) {
  2.         try {
  3.             String extra = extras.getString("item");
  4.             if(extra != null) {
  5.                 if(!extra.equals(mArray[0])) {
  6.                     if(mFilter.equals(mArray[mArray.length-1])) {
  7.                         getActivity().getSupportFragmentManager().beginTransaction()
  8.                                 .replace(R.id.fragment_placeholder, new AboutFragment(), "B")
  9.                                 .commit();
  10.                     } else {
  11.                         mFilter = extra;
  12.                     }
  13.                 }
  14.             } else if(mFilter.equals(mArray[0])) {
  15.                 mFilter = null;
  16.             }
  17.         } catch (Exception e) {
  18.             mFilter = null;
  19.         }
  20.     }
Advertisement
Add Comment
Please, Sign In to add comment