Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,16 @@ public InstalledPlugin insert(PluginConfig pluginConfig) {
* @return 影响的数据行数
*/
public int deleteByUUID(String UUID) {
int row ;
SQLiteDatabase db = mDBHelper.getWritableDatabase();
db.beginTransaction();
try {
return db.delete(InstalledPluginDBHelper.TABLE_NAME_MANAGER, InstalledPluginDBHelper.COLUMN_UUID + " =?", new String[]{UUID});
row = db.delete(InstalledPluginDBHelper.TABLE_NAME_MANAGER, InstalledPluginDBHelper.COLUMN_UUID + " =?", new String[]{UUID});
db.setTransactionSuccessful();
} finally {
db.endTransaction();
db.close();
}
return row;
}

/**
Expand Down