this one can just be a resource ID instead of actually fetching the string, so:

builder.setTitle(R.string.preferences__set_custom_led_pattern);