Skip to content

Commit

Permalink
fix: App link intent appear when clicking on Terms and Policy S… (fos…
Browse files Browse the repository at this point in the history
…sasia#2345)

 Fix 2183
  • Loading branch information
rob729 authored and ranjsa committed Sep 17, 2019
1 parent 9889ba1 commit 52bdee7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ android {
aaptOptions {
cruncherEnabled = false
}
buildToolsVersion = '29.0.2'
kotlinOptions {
jvmTarget = "1.8"
}
Expand Down
7 changes: 7 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@
<data
android:scheme="https"
android:host="@string/FRONTEND_HOST"/>
<data
android:pathPrefix="/e"/>
<data
android:pathPrefix="/reset-password"/>
<data
android:pathPrefix="/email"/>

</intent-filter>
</activity>
<provider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,15 @@ class EventService(

fun addFavorite(favoriteEvent: FavoriteEvent, event: Event) =
favoriteEventApi.addFavorite(favoriteEvent).map {

event.favoriteEventId = it.id
event.favorite = true
eventDao.insertEvent(event)
it
}

fun removeFavorite(favoriteEvent: FavoriteEvent, event: Event): Completable =
favoriteEventApi.removeFavorite(favoriteEvent.id).andThen {
favoriteEventApi.removeFavorite(event.id).andThen {
event.favorite = false
event.favoriteEventId = null
eventDao.insertEvent(event)
Expand Down

0 comments on commit 52bdee7

Please sign in to comment.