Merge branch 'dev' into 'master'

MigrationReceiver: Fix the folly!

See merge request AuroraOSS/AuroraStore!384
This commit is contained in:
Rahul Patel
2024-09-30 08:46:28 +00:00
2 changed files with 7 additions and 4 deletions

View File

@@ -57,7 +57,9 @@ class MigrationReceiver : BroadcastReceiver() {
if (CertUtil.isAppGalleryApp(context, context.packageName)) { if (CertUtil.isAppGalleryApp(context, context.packageName)) {
val dispensers = Preferences.getStringSet(context, PREFERENCE_DISPENSER_URLS) val dispensers = Preferences.getStringSet(context, PREFERENCE_DISPENSER_URLS)
.toMutableSet() .toMutableSet()
.remove(Constants.URL_DISPENSER)
dispensers.remove(Constants.URL_DISPENSER)
context.save(PREFERENCE_DISPENSER_URLS, dispensers) context.save(PREFERENCE_DISPENSER_URLS, dispensers)
} }
currentVersion++ currentVersion++

View File

@@ -82,9 +82,10 @@ class SplashFragment : BaseFragment<FragmentSplashBinding>() {
attachActions() attachActions()
// Show anonymous logins if we have dispenser URL // Show anonymous logins if we have dispenser URL
if (!viewModel.authProvider.dispenserURL.isNullOrBlank()) { binding.btnAnonymous.visibility = if (viewModel.authProvider.dispenserURL.isNullOrBlank())
binding.btnAnonymous.visibility = View.VISIBLE View.GONE
} else
View.VISIBLE
viewLifecycleOwner.lifecycleScope.launch { viewLifecycleOwner.lifecycleScope.launch {
viewModel.authState.collectLatest { viewModel.authState.collectLatest {