@Override public Cursor query( Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { ItemSelect sel = ItemSelect.forQuery() .withItemUriPredicate(isItemUri) .selectionFor(uri, selection, selectionArgs); String order = TextUtils.isEmpty(sortOrder) ? DEFAULT_SORT_ORDER : sortOrder; Cursor cursor = rateDatabase.query(RATE_CONTENT, projection, sel.selection, sel.selectionArgs, order); cursor.setNotificationUri(getContext().getContentResolver(), uri); return cursor; }