Choose image as card icon (#333)

This commit is contained in:
Sylvia van Os
2021-11-07 20:27:28 +01:00
committed by GitHub
parent da0a221c85
commit af4075b9e2
16 changed files with 316 additions and 152 deletions

View File

@@ -601,11 +601,12 @@ public class DBHelper extends SQLiteOpenHelper {
withArgs(id));
// Also wipe card images associated with this card
try {
Utils.saveCardImage(mContext, null, id, true);
Utils.saveCardImage(mContext, null, id, false);
} catch (FileNotFoundException e) {
e.printStackTrace();
for (ImageLocationType imageLocationType : ImageLocationType.values()) {
try {
Utils.saveCardImage(mContext, null, id, imageLocationType);
} catch (FileNotFoundException e) {
e.printStackTrace();
}
}
return (rowsDeleted == 1);