Modified change comment for clarification

This commit is contained in:
Kelly Kelly 2021-02-03 17:48:16 -05:00
parent 5aed1e565c
commit ae7e6137a2

View File

@ -839,7 +839,7 @@ public final class ImageGalleryController {
Content newDataSource = (Content) event.getNewValue();
if (isListeningEnabled()) {
try {
// Only add the data source if is not in the database
// If the data source already exists and has a status other than UNKNOWN, dont overwrite it.
if(drawableDB.getDataSourceDbBuildStatus(newDataSource.getId()) == DrawableDB.DrawableDbBuildStatusEnum.UNKNOWN) {
drawableDB.insertOrUpdateDataSource(newDataSource.getId(), DrawableDB.DrawableDbBuildStatusEnum.UNKNOWN);
}