public String getNonEmptyLanguage ( Context context , String language ) { if ( language == null ) { return inferDeviceLanguage ( context ) ; } return language ; }
Returns the locale passed in if it is not null otherwise returns the device locale