fix(usercard): no copy notification on api <31
Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
parent
4322c0f59a
commit
dbdd5556bf
|
|
@ -3,6 +3,7 @@ package chat.revolt.sheets
|
|||
import android.content.ClipData
|
||||
import android.content.Intent
|
||||
import android.graphics.Bitmap
|
||||
import android.widget.Toast
|
||||
import androidx.compose.animation.AnimatedVisibility
|
||||
import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
|
|
@ -148,6 +149,14 @@ fun UserCardSheet(user: User?) {
|
|||
uri
|
||||
)
|
||||
)
|
||||
|
||||
if (Platform.needsShowClipboardNotification()) {
|
||||
Toast.makeText(
|
||||
context,
|
||||
context.getString(R.string.copied),
|
||||
Toast.LENGTH_SHORT
|
||||
).show()
|
||||
}
|
||||
}
|
||||
|
||||
Column(
|
||||
|
|
@ -232,7 +241,7 @@ fun UserCardSheet(user: User?) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Spacer(modifier = Modifier.height(8.dp))
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue