question: public static void updateCategory ( Context context , Category category ) { if ( mCategories != null && mCategories . contains ( category ) ) { final int location = mCategories . indexOf ( category ) ; mCategories . remove ( location ) ; mCategories . add ( location , category ) ; } SQLiteDatabase writableDatabase = getWritableDatabase ( context ) ; ContentValues categoryValues = createContentValuesFor ( category ) ; writableDatabase . update ( CategoryTable . NAME , categoryValues , CategoryTable . COLUMN_ID + "=?" , new String [ ] { category . getId ( ) } ) ; final List < Quiz > quizzes = category . getQuizzes ( ) ; updateQuizzes ( writableDatabase , quizzes ) ; }
target:  Updates values for a category.