private void initialize ( ) { LocaleUtils localeUtils = new LocaleUtils ( ) ; String language = localeUtils . inferDeviceLanguage ( getContext ( ) ) ; String unitType = localeUtils . getUnitTypeForDeviceLocale ( getContext ( ) ) ; int roundingIncrement = NavigationConstants . ROUNDING_INCREMENT_FIFTY ; distanceFormatter = new DistanceFormatter ( getContext ( ) , language , unitType , roundingIncrement ) ; inflate ( getContext ( ) , R . layout . instruction_view_layout , this ) ; }
Inflates this layout needed for this view and initializes the locale as the device locale .