Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Expand Up @@ -81,7 +81,7 @@ internal object ProcessDetailsProvider {

/** Gets the app's current process name. If the API is not available, returns an empty string. */
private fun getProcessName(): String =
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.TIRAMISU) {
Process.myProcessName()
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
Application.getProcessName() ?: ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ internal object ProcessDetailsProvider {

/** Gets the app's current process name. If it could not be found, returns an empty string. */
internal fun getProcessName(): String {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.TIRAMISU) {
return Process.myProcessName()
}

Expand Down
Loading