appendImmutableFlagIfNeeded
Adds the PendingIntent.FLAG_IMMUTABLE flag to the provided flags if the device is running Android 6.0 (Marshmallow) or higher.
Return
The provided flags with the PendingIntent.FLAG_IMMUTABLE flag added if the device is running Android 6.0 or higher, otherwise the original flags unchanged.
Parameters
flags
The initial flags of the PendingIntent.