Fixup! Implement remove favourite
This commit is contained in:
1 parent
ef475000c3
commit
a18e6f4b63
1 file changed
+3
@@ -70,6 +70,7 @@ fun <T : GalleryInfo> GalleryListLongClickDialog(
|
||||
val context = LocalContext.current
|
||||
|
||||
val removeFromFavouriteSuccess = stringResource(id = R.string.remove_from_favorite_success)
|
||||
val removeFromFavouriteFailure = stringResource(id = R.string.remove_from_favorite_failure)
|
||||
|
||||
AlertDialog(
|
||||
onDismissRequest = {
|
||||
@@ -135,6 +136,8 @@ fun <T : GalleryInfo> GalleryListLongClickDialog(
|
||||
info.favoriteName = null
|
||||
EhDB.putHistoryInfoNonRefresh(info)
|
||||
showTip(removeFromFavouriteSuccess)
|
||||
}.onFailure {
|
||||
showTip(removeFromFavouriteFailure)
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user