mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-27 17:08:34 +03:00
Replace 'Integer#toString' with Kotlin functions
Signed-off-by: Tim Krüger <t@timkrueger.me>
This commit is contained in:
parent
7dec6dd4dd
commit
7b1eda1b85
1 changed files with 2 additions and 2 deletions
|
@ -690,7 +690,7 @@ class ChatController(args: Bundle) :
|
||||||
if (s.length >= lengthFilter) {
|
if (s.length >= lengthFilter) {
|
||||||
binding.messageInputView.inputEditText?.error = String.format(
|
binding.messageInputView.inputEditText?.error = String.format(
|
||||||
Objects.requireNonNull<Resources>(resources).getString(R.string.nc_limit_hit),
|
Objects.requireNonNull<Resources>(resources).getString(R.string.nc_limit_hit),
|
||||||
Integer.toString(lengthFilter)
|
lengthFilter.toString()
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
binding.messageInputView.inputEditText?.error = null
|
binding.messageInputView.inputEditText?.error = null
|
||||||
|
@ -2088,7 +2088,7 @@ class ChatController(args: Bundle) :
|
||||||
override fun onError(e: Throwable) {
|
override fun onError(e: Throwable) {
|
||||||
if (e is HttpException) {
|
if (e is HttpException) {
|
||||||
val code = e.code()
|
val code = e.code()
|
||||||
if (Integer.toString(code).startsWith("2")) {
|
if (code.toString().startsWith("2")) {
|
||||||
myFirstMessage = message
|
myFirstMessage = message
|
||||||
|
|
||||||
if (binding.popupBubbleView.isShown) {
|
if (binding.popupBubbleView.isShown) {
|
||||||
|
|
Loading…
Reference in a new issue