src/main/java/de/blau/android/util/SelectByImageFragment.java
/**
     * 
     * @param imageList list of Uris
     * @param startPos starting position in the list
     * @param loader callback for loading images etc.
     * @param wrap if true wrap around when last/first photo is reached
     * @return a new instance of PhotoViwerFragment
     */
@param imageList list of Uris
@param startPos starting position in the list
@param loader callback for loading images etc.
@param wrap if true wrap around when last/first photo is reached
@return a new instance of PhotoViwerFragment
@param imageList list of Uris @param startPos starting position in the list @param loader callback for loading images etc . @param wrap if true wrap around when last / first photo is reached @return a new instance of PhotoViwerFragment
@NonNull
    public static SelectByImageFragment newInstance(@NonNull ArrayList<String> imageList, int startPos, @NonNull ImageLoader loader, boolean wrap) { 
        SelectByImageFragment f = new SelectByImageFragment();
        Bundle args = new Bundle();
        args.putStringArrayList(IMAGE_LIST_KEY, imageList);
        args.putInt(START_POS_KEY, startPos);
        args.putSerializable(IMAGE_LOADER_KEY, loader);
        f.setArguments(args);
        return f;
    }
@ NonNull public static SelectByImageFragment newInstance ( @ NonNull ArrayList < String > imageList , int startPos , @ NonNull ImageLoader loader , boolean wrap ) { SelectByImageFragment f = new SelectByImageFragment ( ) ; Bundle args = new Bundle ( ) ; args . putStringArrayList ( IMAGE_LIST_KEY , imageList ) ; args . putInt ( START_POS_KEY , startPos ) ; args . putSerializable ( IMAGE_LOADER_KEY , loader ) ; f . setArguments ( args ) ; return f ; }
@param imageList list of Uris
 @param startPos starting position in the list
 @param loader callback for loading images etc.
@param imageList list of Uris @param startPos starting position in the list @param loader callback for loading images etc .
// NOSONAR