Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Commit

Permalink
NewSubscriptionActivity: fix
Browse files Browse the repository at this point in the history
Signed-off-by: Siubeng Fung <[email protected]>
  • Loading branch information
fython committed Feb 14, 2020
1 parent 94413d2 commit 4e26f41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/build
/release
google-services.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ class NewSubscriptionActivity : BaseActivity(),

private suspend fun loadRecommendation() {
setRecommendationViews(true)
recommendation = DanmaquaApi.getRecommendation()
try {
recommendation = DanmaquaApi.getRecommendation()
} catch (e: Exception) {
e.printStackTrace()
}
setRecommendationViews(false)
}

Expand Down

0 comments on commit 4e26f41

Please sign in to comment.