* RestrictionEntry | Bundle |
* {@link RestrictionEntry#TYPE_BOOLEAN} | {@link Bundle#putBoolean} |
* {@link RestrictionEntry#TYPE_CHOICE},
* {@link RestrictionEntry#TYPE_MULTI_SELECT} |
* {@link Bundle#putStringArray} |
* {@link RestrictionEntry#TYPE_INTEGER} | {@link Bundle#putInt} |
* {@link RestrictionEntry#TYPE_STRING} | {@link Bundle#putString} |
* {@link RestrictionEntry#TYPE_BUNDLE} | {@link Bundle#putBundle} |
* {@link RestrictionEntry#TYPE_BUNDLE_ARRAY} |
* {@link Bundle#putParcelableArray} |
*
* TYPE_BUNDLE and TYPE_BUNDLE_ARRAY are supported from api level 23 onwards.
* @param entries list of restrictions
*/
public static Bundle convertRestrictionsToBundle(List