Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e753b06 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

apps: Minor refactor

parent c852f701
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -164,7 +164,7 @@ class UpdatesFragment : TimeoutFragment(R.layout.fragment_updates), ApplicationI
    private fun handleStateNoUpdates(list: List<Application>?) {
        if (!list.isNullOrEmpty()) {
            binding.button.isEnabled = true
            initUpdataAllButton()
            initUpdateAllButton()
            binding.noUpdates.visibility = View.GONE
        } else {
            binding.noUpdates.visibility = View.VISIBLE
@@ -284,10 +284,10 @@ class UpdatesFragment : TimeoutFragment(R.layout.fragment_updates), ApplicationI
            clearAndRestartGPlayLogin()
            true
        }
        initUpdataAllButton()
        initUpdateAllButton()
    }

    private fun initUpdataAllButton() {
    private fun initUpdateAllButton() {
        binding.button.setOnClickListener {
            UpdatesWorkManager.startUpdateAllWork(requireContext())
            observeUpdateWork()
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ class UpdatesViewModel @Inject constructor(
        }, retryBlock)
    }

    fun getUpdates(authData: AuthData?) {
    private fun getUpdates(authData: AuthData?) {
        viewModelScope.launch {
            val updatesResult = if (authData != null)
                updatesManagerRepository.getUpdates(authData)