mirror of
https://github.com/whyorean/AuroraStore.git
synced 2026-06-16 03:31:02 -04:00
MigrationReceiver: Fix the folly!
This commit is contained in:
@@ -57,7 +57,9 @@ class MigrationReceiver : BroadcastReceiver() {
|
||||
if (CertUtil.isAppGalleryApp(context, context.packageName)) {
|
||||
val dispensers = Preferences.getStringSet(context, PREFERENCE_DISPENSER_URLS)
|
||||
.toMutableSet()
|
||||
.remove(Constants.URL_DISPENSER)
|
||||
|
||||
dispensers.remove(Constants.URL_DISPENSER)
|
||||
|
||||
context.save(PREFERENCE_DISPENSER_URLS, dispensers)
|
||||
}
|
||||
currentVersion++
|
||||
|
||||
@@ -82,9 +82,10 @@ class SplashFragment : BaseFragment<FragmentSplashBinding>() {
|
||||
attachActions()
|
||||
|
||||
// Show anonymous logins if we have dispenser URL
|
||||
if (!viewModel.authProvider.dispenserURL.isNullOrBlank()) {
|
||||
binding.btnAnonymous.visibility = View.VISIBLE
|
||||
}
|
||||
binding.btnAnonymous.visibility = if (viewModel.authProvider.dispenserURL.isNullOrBlank())
|
||||
View.GONE
|
||||
else
|
||||
View.VISIBLE
|
||||
|
||||
viewLifecycleOwner.lifecycleScope.launch {
|
||||
viewModel.authState.collectLatest {
|
||||
|
||||
Reference in New Issue
Block a user