private int generateCustomActivityRequestCode(AppRestrictionsPreference preference){
  mCustomRequestCode++;
  mCustomRequestMap.put(mCustomRequestCode,preference);
  return mCustomRequestCode;
}

private int generateCustomActivityRequestCode ( AppRestrictionsPreference preference ) { mCustomRequestCode ++ ; mCustomRequestMap . put ( mCustomRequestCode , preference ) ; return mCustomRequestCode ; }
generates a request code that is stored in a map to retrieve the associated apprestrictionspreference .
