private void obtainNavigationBackground ( ) { try { setNavigationBackgroundColor ( ThemeUtil . getColor ( this , R . attr . navigationBackground ) ) ; } catch ( NotFoundException e ) { int resourceId = ThemeUtil . getResId ( this , R . attr . navigationBackground , - 1 ) ; if ( resourceId != - 1 ) { setNavigationBackground ( resourceId ) ; } else { setNavigationBackground ( null ) ; } } }
Obtains the background of the navigation from the activity s theme .