소스 검색

Replace 'Integer#toString' with Kotlin functions

Signed-off-by: Tim Krüger <t@timkrueger.me>
Tim Krüger 2 년 전
부모
커밋
7b1eda1b85
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/src/main/java/com/nextcloud/talk/controllers/ChatController.kt

+ 2 - 2
app/src/main/java/com/nextcloud/talk/controllers/ChatController.kt

@@ -690,7 +690,7 @@ class ChatController(args: Bundle) :
                     if (s.length >= lengthFilter) {
                         binding.messageInputView.inputEditText?.error = String.format(
                             Objects.requireNonNull<Resources>(resources).getString(R.string.nc_limit_hit),
-                            Integer.toString(lengthFilter)
+                            lengthFilter.toString()
                         )
                     } else {
                         binding.messageInputView.inputEditText?.error = null
@@ -2088,7 +2088,7 @@ class ChatController(args: Bundle) :
                     override fun onError(e: Throwable) {
                         if (e is HttpException) {
                             val code = e.code()
-                            if (Integer.toString(code).startsWith("2")) {
+                            if (code.toString().startsWith("2")) {
                                 myFirstMessage = message
 
                                 if (binding.popupBubbleView.isShown) {