0
0
Fork 0
mirror of https://github.com/YTVanced/VancedManager synced 2024-11-25 20:55:12 +00:00

fixed a bug

This commit is contained in:
X1nto 2020-05-27 00:25:08 +04:00
parent c43475af2c
commit 6f11a9c92b

View file

@ -150,7 +150,7 @@ open class BaseFragment : Fragment() {
downloadEn(loadBar, dlText) downloadEn(loadBar, dlText)
else { else {
dlText.visibility = View.GONE dlText.visibility = View.GONE
prefs.edit()?.putBoolean("isDownloading", true)?.apply() prefs.edit()?.putBoolean("isDownloading", false)?.apply()
launchInstaller() launchInstaller()
} }
}, },
@ -186,7 +186,7 @@ open class BaseFragment : Fragment() {
onComplete = { onComplete = {
loadBar.visibility = View.GONE loadBar.visibility = View.GONE
dlText.visibility = View.GONE dlText.visibility = View.GONE
prefs?.edit()?.putBoolean("isDownloading", true)?.apply() prefs?.edit()?.putBoolean("isDownloading", false)?.apply()
launchInstaller() launchInstaller()
}, },
onError = { throwable -> onError = { throwable ->