Are you able to getString here? If so then fontName = getString(fontNameResId); will clean up multiple places in this pull request.