public RangeSelectorHelper withSavedInstanceState ( Bundle savedInstanceState , String prefix ) { if ( savedInstanceState != null && savedInstanceState . containsKey ( BUNDLE_LAST_LONG_PRESS + prefix ) ) mLastLongPressIndex = savedInstanceState . getInt ( BUNDLE_LAST_LONG_PRESS + prefix ) ; return this ; }
restore the index of the last long pressed index IMPORTANT! Call this method only after all items where added to the adapters again . Otherwise it may select wrong items!