Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Do not log NameNotFoundException to sentry when saving to kDrive #2238

Merged
merged 1 commit into from
Mar 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Infomaniak Mail - Android
* Copyright (C) 2024 Infomaniak Network SA
* Copyright (C) 2024-2025 Infomaniak Network SA
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -19,7 +19,6 @@ package com.infomaniak.mail.utils

import android.content.Context
import android.content.pm.PackageManager
import io.sentry.Sentry

object SaveOnKDriveUtils {
const val DRIVE_PACKAGE = "com.infomaniak.drive"
Expand All @@ -29,7 +28,6 @@ object SaveOnKDriveUtils {
val packageInfo = context.packageManager.getPackageInfo(DRIVE_PACKAGE, PackageManager.GET_ACTIVITIES)
packageInfo.activities.any { it.name == SAVE_EXTERNAL_ACTIVITY_CLASS }
}.getOrElse {
Sentry.captureException(it)
false
}
}