fix fabric

This commit is contained in:
Kr328 committed 2019-12-10 14:21:02 +08:00
1 parent ddeff030e3
commit 41b263a7ee
1 file changed
+2
@@ -6,6 +6,7 @@ import com.crashlytics.android.Crashlytics
import com.github.kr328.clash.core.Constants
import com.github.kr328.clash.core.utils.Log
import com.google.firebase.FirebaseApp
import io.fabric.sdk.android.Fabric
class MainApplication : Application() {
companion object {
@@ -27,6 +28,7 @@ class MainApplication : Application() {
try {
FirebaseApp.initializeApp(this)
Fabric.with(this)
Log.i("Registered")
} catch (e: IllegalStateException) {
Log.i("Already registered")