mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Hide "copied to clipboard" snack on manga details for android 13
This commit is contained in:
parent
4aff504ffc
commit
a3508a59c1
2 changed files with 2 additions and 1 deletions
|
@ -1565,6 +1565,7 @@ class MangaDetailsController :
|
|||
clipboard.setPrimaryClip(ClipData.newPlainText(label, content))
|
||||
|
||||
label ?: return
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) return
|
||||
if (useToast) {
|
||||
activity.toast(view.context.getString(R.string._copied_to_clipboard, label))
|
||||
} else {
|
||||
|
|
|
@ -101,7 +101,7 @@ class AboutController : SettingsController() {
|
|||
val clipboard = it.getSystemService<ClipboardManager>()!!
|
||||
val appInfo = it.getString(R.string.app_info)
|
||||
clipboard.setPrimaryClip(ClipData.newPlainText(appInfo, deviceInfo))
|
||||
if (Build.VERSION.SDK_INT + Build.VERSION.PREVIEW_SDK_INT < 33) {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) {
|
||||
view?.snack(context.getString(R.string._copied_to_clipboard, appInfo))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue