mirror of https://github.com/M66B/FairEmail.git
Added shutdown handler
This commit is contained in:
parent
37dea4eb32
commit
0dd29abd06
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue