class AppPrefsProvider extends FDroidProvider {

    @Override
    public int update(@NonNull Uri uri, ContentValues values, String where, String[] whereArgs) {
        if (MATCHER.match(uri) != CODE_SINGLE) {
            throw new UnsupportedOperationException("Update not supported for " + uri + ".");
        }

        QuerySelection query = new QuerySelection(where, whereArgs).add(querySingle(uri.getLastPathSegment()));
        int count = db().update(getTableName(), values, query.getSelection(), query.getArgs());
        getContext().getContentResolver().notifyChange(AppProvider.getCanUpdateUri(), null);
        return count;
    }

}