Skip to content

Commit bfd237b

Browse files
Fix Crash on saving link from sharing (#77)
* feat: add tag filtering and link-tag relationship management in AccountViewModel and database schema * feat: add tags and link-tags relationship management in database schema and update AccountViewModel for sorting * tags enhancements * feat: refactor Home and HomeBottomContent to improve tag display and inject AccountViewModel * feat: add tag display using InputChip in DeeprItem and improve layout with FlowRow * feat: implement tag filtering and selection UI with TagSelectionBottomSheet * fix: update deepr link check to use executeAsList for better validation
1 parent 70f748a commit bfd237b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/src/main/java/com/yogeshpaliyal/deepr/ui/screens/home/HomeBottomContent.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,8 @@ fun HomeBottomContent(
305305
if (isCreate &&
306306
deeprQueries
307307
.getDeeprByLink(deeprInfo.link)
308-
.executeAsOneOrNull() != null
308+
.executeAsList()
309+
.isNotEmpty()
309310
) {
310311
Toast
311312
.makeText(
@@ -336,7 +337,8 @@ fun HomeBottomContent(
336337
if (isValidDeeplink(deeprInfo.link)) {
337338
if (deeprQueries
338339
.getDeeprByLink(deeprInfo.link)
339-
.executeAsOneOrNull() != null
340+
.executeAsList()
341+
.isNotEmpty()
340342
) {
341343
Toast
342344
.makeText(

0 commit comments

Comments
 (0)