mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 13:24:52 +02:00
Added shutdown handler
This commit is contained in:
@@ -68,6 +68,16 @@ public class ApplicationEx extends Application
|
||||
@Override
|
||||
protected void attachBaseContext(Context base) {
|
||||
TinyLogConfigurationLoader.setup(base);
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(new Thread() {
|
||||
@Override
|
||||
public void run() {
|
||||
Log.i("App shutdown" +
|
||||
" version=" + BuildConfig.VERSION_NAME + BuildConfig.REVISION +
|
||||
" process=" + android.os.Process.myPid());
|
||||
}
|
||||
});
|
||||
|
||||
super.attachBaseContext(getLocalizedContext(base));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user