refactor+

This commit is contained in:
IndusAryan 2024-02-21 15:27:16 +05:30
parent 1b84e65fd3
commit 917639857f
2 changed files with 2 additions and 3 deletions

View file

@ -754,8 +754,8 @@ open class ResultFragmentPhone : FullScreenPlayer() {
resultReloadConnectionOpenInBrowser.isVisible = data is Resource.Failure
resultTitle.setOnLongClickListener {
val titleString = txt(R.string.title)
clipboardHelper(titleString, resultTitle.text)
val titleCopyLabel = txt(R.string.title)
clipboardHelper(titleCopyLabel, resultTitle.text)
true
}
}

View file

@ -138,7 +138,6 @@ object UIHelper {
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.S_V2) {
showToast("${label.asString(context!!)} ${labelSuffix.asString(context!!)}")
}
} catch (t: Throwable) {
Log.e("ClipboardService", "$t")
showToast(R.string.clipboard_too_large)