From 83f8fca0d1f1bedbc2c148ccb246a029d73b1a77 Mon Sep 17 00:00:00 2001 From: David Perez Date: Wed, 22 Apr 2026 09:05:04 -0500 Subject: [PATCH] chore: Remove deprecated code from BitwardenCutCopyTextToolbar (#6815) --- .../field/toolbar/BitwardenCutCopyTextToolbar.kt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ui/src/main/kotlin/com/bitwarden/ui/platform/components/field/toolbar/BitwardenCutCopyTextToolbar.kt b/ui/src/main/kotlin/com/bitwarden/ui/platform/components/field/toolbar/BitwardenCutCopyTextToolbar.kt index 8039083290..0bd9cfc506 100644 --- a/ui/src/main/kotlin/com/bitwarden/ui/platform/components/field/toolbar/BitwardenCutCopyTextToolbar.kt +++ b/ui/src/main/kotlin/com/bitwarden/ui/platform/components/field/toolbar/BitwardenCutCopyTextToolbar.kt @@ -2,13 +2,13 @@ package com.bitwarden.ui.platform.components.field.toolbar import android.content.ClipData import android.content.ClipboardManager +import android.os.PersistableBundle import androidx.compose.ui.focus.FocusManager import androidx.compose.ui.geometry.Rect import androidx.compose.ui.platform.TextToolbar import androidx.compose.ui.platform.TextToolbarStatus import androidx.compose.ui.text.input.TextFieldValue import androidx.compose.ui.text.input.getSelectedText -import androidx.core.os.persistableBundleOf import com.bitwarden.annotation.OmitFromCoverage /** @@ -41,9 +41,9 @@ class BitwardenCutCopyTextToolbar( ClipData .newPlainText("", value.getSelectedText()) .apply { - description.extras = persistableBundleOf( - "android.content.extra.IS_SENSITIVE" to true, - ) + description.extras = PersistableBundle(1).apply { + putBoolean("android.content.extra.IS_SENSITIVE", true) + } }, ) } @@ -55,9 +55,9 @@ class BitwardenCutCopyTextToolbar( ClipData .newPlainText("", value.getSelectedText()) .apply { - description.extras = persistableBundleOf( - "android.content.extra.IS_SENSITIVE" to true, - ) + description.extras = PersistableBundle(1).apply { + putBoolean("android.content.extra.IS_SENSITIVE", true) + } }, ) // Clear selection