diff --git a/app/.gitignore b/app/.gitignore index a2def88..9bdc723 100644 --- a/app/.gitignore +++ b/app/.gitignore @@ -1,2 +1,3 @@ /build +/release google-services.json diff --git a/app/src/main/java/moe/feng/danmaqua/ui/NewSubscriptionActivity.kt b/app/src/main/java/moe/feng/danmaqua/ui/NewSubscriptionActivity.kt index a731811..26ee930 100644 --- a/app/src/main/java/moe/feng/danmaqua/ui/NewSubscriptionActivity.kt +++ b/app/src/main/java/moe/feng/danmaqua/ui/NewSubscriptionActivity.kt @@ -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) }