destroy the Gallery database instance only if the user exits the app

This commit is contained in:
tibbi 2018-04-26 09:41:15 +02:00
parent 688b0e2624
commit 9aade59c07

View file

@ -190,8 +190,10 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
config.temporarilyShowHidden = false
mTempShowHiddenHandler.removeCallbacksAndMessages(null)
removeTempFolder()
if (!isChangingConfigurations) {
GalleryDataBase.destroyInstance()
}
}
override fun onCreateOptionsMenu(menu: Menu): Boolean {
if (mIsThirdPartyIntent) {