Skip to content

Commit

Permalink
Update app/src/main/java/com/infomaniak/mail/ui/main/folder/ThreadLis…
Browse files Browse the repository at this point in the history
…tFragment.kt
  • Loading branch information
KevinBoulongne authored and FabianDevel committed Dec 5, 2023
1 parent c13b7cb commit 9c09118
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions app/src/main/java/com/infomaniak/mail/ui/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import com.infomaniak.lib.core.utils.SentryLog
import com.infomaniak.lib.core.utils.Utils
import com.infomaniak.lib.core.utils.Utils.toEnumOrThrow
import com.infomaniak.lib.core.utils.UtilsUi.openUrl
import com.infomaniak.lib.stores.*
import com.infomaniak.lib.stores.StoreUtils.checkStalledUpdate
import com.infomaniak.lib.stores.StoreUtils.checkUpdateIsAvailable
import com.infomaniak.lib.stores.StoreUtils.initAppUpdateManager
Expand Down Expand Up @@ -471,8 +470,8 @@ class MainActivity : BaseActivity() {
checkUpdateIsAvailable(
appId = BuildConfig.APPLICATION_ID,
versionCode = BuildConfig.VERSION_CODE,
resultLauncher = inAppUpdateResultLauncher,
onResult = { updateIsAvailable ->
inAppResultLauncher = inAppUpdateResultLauncher,
onFdroidResult = { updateIsAvailable ->
if (updateIsAvailable) navController.navigate(R.id.updateAvailableBottomSheetDialog)
},
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ class ThreadListFragment : Fragment(), SwipeRefreshLayout.OnRefreshListener {

StoreUtils.installDownloadedUpdate {
Sentry.captureException(it)
// This avoid the user being instantly reprompt to download update
// This avoid the user being instantly reprompted to download update
localSettings.isUserWantingUpdates = false
mainViewModel.snackBarManager.setValue(getString(RCore.string.errorUpdateInstall))
}
Expand Down

0 comments on commit 9c09118

Please sign in to comment.