From 7c9147eff10c80c18757db1d2e41f529585551e6 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sat, 26 Sep 2020 17:28:32 +0300 Subject: [PATCH] make splash activity descent from CrashReportingActivity some DB work is done in the background, initiated from SplashActivity. it is possible that it crashes for some reason and that better be reported --- .../java/net/ktnx/mobileledger/ui/activity/SplashActivity.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/SplashActivity.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/SplashActivity.java index 921abb75..4988d1c5 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/SplashActivity.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/SplashActivity.java @@ -22,7 +22,6 @@ import android.os.AsyncTask; import android.os.Bundle; import android.os.Handler; -import androidx.activity.ComponentActivity; import androidx.annotation.Nullable; import net.ktnx.mobileledger.R; @@ -32,7 +31,7 @@ import net.ktnx.mobileledger.utils.Logger; import net.ktnx.mobileledger.utils.MLDB; import net.ktnx.mobileledger.utils.MobileLedgerDatabase; -public class SplashActivity extends ComponentActivity { +public class SplashActivity extends CrashReportingActivity { private static final long keepActiveForMS = 500; private long startupTime; private boolean running = true; -- 2.39.5