From: Damyan Ivanov Date: Sat, 26 Sep 2020 14:28:32 +0000 (+0300) Subject: make splash activity descent from CrashReportingActivity X-Git-Tag: v0.16.0~44 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=7c9147eff10c80c18757db1d2e41f529585551e6;p=mobile-ledger.git 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 --- 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;