mirror of
https://github.com/YTVanced/VancedManager
synced 2024-11-27 05:23:00 +00:00
improved code
This commit is contained in:
parent
d3caeb7554
commit
70affaefda
1 changed files with 5 additions and 3 deletions
|
@ -87,9 +87,11 @@ class MainActivity : AppCompatActivity() {
|
|||
|
||||
override fun onPause() {
|
||||
super.onPause()
|
||||
getSharedPreferences("installPrefs", Context.MODE_PRIVATE).edit().putBoolean("isInstalling", false).apply()
|
||||
getSharedPreferences("installPrefs", Context.MODE_PRIVATE).edit().putBoolean("isVancedDownloading", false).apply()
|
||||
getSharedPreferences("installPrefs", Context.MODE_PRIVATE).edit().putBoolean("isMicrogDownloading", false).apply()
|
||||
with(getSharedPreferences("installPrefs", Context.MODE_PRIVATE).edit()) {
|
||||
putBoolean("isInstalling", false).apply()
|
||||
putBoolean("isVancedDownloading", false).apply()
|
||||
putBoolean("isMicrogDownloading", false).apply()
|
||||
}
|
||||
localBroadcastManager.unregisterReceiver(broadcastReceiver)
|
||||
Crowdin.unregisterDataLoadingObserver(loadingObserver)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue