Code example for MergeCursor

0
    } 
 
    @Override 
    public Cursor swapCursor(Cursor newCursor) {
        if (showPresets) {
            newCursor = new MergeCursor(new Cursor[] {PRESETS_CURSOR, newCursor});
        } 
        return super.swapCursor(newCursor);
    } 
 
    @Override 
    protected Uri getLoaderUri() {
        return SubredditProvider.SUBREDDITS_URI; 
    } 
 
    @Override 
    protected String[] getProjection() {
        return PROJECTION;
    } 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE