Skip to content

Commit

Permalink
refactor(InAppUpdateManager): Update Core changes for mail
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianDevel committed Feb 6, 2024
1 parent 0cc9b1a commit cfe52e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/com/infomaniak/drive/ui/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,6 @@ class MainActivity : BaseActivity() {
appId = BuildConfig.APPLICATION_ID,
versionCode = BuildConfig.VERSION_CODE,
onUserChoice = { isWantingUpdate -> trackInAppUpdate(if (isWantingUpdate) "discoverNow" else "discoverLater") },
onFDroidResult = { updateIsAvailable ->
if (updateIsAvailable) navController.navigate(R.id.updateAvailableBottomSheetDialog)
},
onInstallStart = { trackInAppUpdate("installUpdate") },
onInstallFailure = {
Sentry.captureException(it)
Expand All @@ -266,6 +263,9 @@ class MainActivity : BaseActivity() {
inAppUpdateSnackbar?.dismiss()
}
}
it.onFDroidResult = { updateIsAvailable ->
if (updateIsAvailable) navController.navigate(R.id.updateAvailableBottomSheetDialog)
}
}

private fun canDisplayInAppSnackbar() = inAppUpdateSnackbar?.isShown != true && getMainFab().isShown
Expand Down

0 comments on commit cfe52e6

Please sign in to comment.