diff --git a/app/src/gplay/java/com/nextcloud/talk/services/firebase/MagicFirebaseMessagingService.kt b/app/src/gplay/java/com/nextcloud/talk/services/firebase/MagicFirebaseMessagingService.kt index 6c0e0bffe..f7d24f54c 100644 --- a/app/src/gplay/java/com/nextcloud/talk/services/firebase/MagicFirebaseMessagingService.kt +++ b/app/src/gplay/java/com/nextcloud/talk/services/firebase/MagicFirebaseMessagingService.kt @@ -283,6 +283,7 @@ class MagicFirebaseMessagingService : FirebaseMessagingService() { .subscribeOn(Schedulers.io()) .subscribe(object : Observer { override fun onSubscribe(d: Disposable) { + // unused atm } override fun onNext(participantsOverall: ParticipantsOverall) { diff --git a/app/src/gplay/java/com/nextcloud/talk/utils/ClosedInterfaceImpl.kt b/app/src/gplay/java/com/nextcloud/talk/utils/ClosedInterfaceImpl.kt index 83edacd4a..1a4d25ccb 100644 --- a/app/src/gplay/java/com/nextcloud/talk/utils/ClosedInterfaceImpl.kt +++ b/app/src/gplay/java/com/nextcloud/talk/utils/ClosedInterfaceImpl.kt @@ -52,9 +52,11 @@ class ClosedInterfaceImpl : ClosedInterface, ProviderInstaller.ProviderInstallLi } override fun onProviderInstalled() { + // unused atm } override fun onProviderInstallFailed(p0: Int, p1: Intent?) { + // unused atm } private fun isGPlayServicesAvailable(): Boolean { diff --git a/app/src/main/java/com/nextcloud/talk/controllers/AccountVerificationController.kt b/app/src/main/java/com/nextcloud/talk/controllers/AccountVerificationController.kt index 9380395b4..2f5b050f9 100644 --- a/app/src/main/java/com/nextcloud/talk/controllers/AccountVerificationController.kt +++ b/app/src/main/java/com/nextcloud/talk/controllers/AccountVerificationController.kt @@ -176,7 +176,9 @@ class AccountVerificationController(args: Bundle? = null) : } } - override fun onComplete() {} + override fun onComplete() { + // unused atm + } }) } @@ -231,7 +233,9 @@ class AccountVerificationController(args: Bundle? = null) : abortVerification() } - override fun onComplete() {} + override fun onComplete() { + // unused atm + } }) } @@ -275,7 +279,9 @@ class AccountVerificationController(args: Bundle? = null) : abortVerification() } - override fun onComplete() {} + override fun onComplete() { + // unused atm + } }) } @@ -328,7 +334,9 @@ class AccountVerificationController(args: Bundle? = null) : abortVerification() } - override fun onComplete() {} + override fun onComplete() { + // unused atm + } }) } @@ -457,12 +465,16 @@ class AccountVerificationController(args: Bundle? = null) : if (!isAccountImport) { if (internalAccountId != -1L) { userUtils.deleteUserWithId(internalAccountId).subscribe(object : CompletableObserver { - override fun onSubscribe(d: Disposable) {} + override fun onSubscribe(d: Disposable) { + // unused atm + } override fun onComplete() { activity?.runOnUiThread { Handler().postDelayed({ router.popToRoot() }, 7500) } } - override fun onError(e: Throwable) {} + override fun onError(e: Throwable) { + // unused atm + } }) } else { activity?.runOnUiThread { Handler().postDelayed({ router.popToRoot() }, 7500) } diff --git a/app/src/main/java/com/nextcloud/talk/controllers/ChatController.kt b/app/src/main/java/com/nextcloud/talk/controllers/ChatController.kt index 185d23acd..a53cd8e48 100644 --- a/app/src/main/java/com/nextcloud/talk/controllers/ChatController.kt +++ b/app/src/main/java/com/nextcloud/talk/controllers/ChatController.kt @@ -433,7 +433,9 @@ class ChatController(args: Bundle) : } } - override fun onFailureImpl(dataSource: DataSource>) {} + override fun onFailureImpl(dataSource: DataSource>) { + // unused atm + } }, UiThreadImmediateExecutorService.getInstance() ) @@ -630,6 +632,7 @@ class ChatController(args: Bundle) : binding.messageInputView.inputEditText?.addTextChangedListener(object : TextWatcher { override fun beforeTextChanged(s: CharSequence, start: Int, count: Int, after: Int) { + // unused atm } @Suppress("Detekt.TooGenericExceptionCaught") diff --git a/app/src/main/java/com/nextcloud/talk/controllers/SwitchAccountController.kt b/app/src/main/java/com/nextcloud/talk/controllers/SwitchAccountController.kt index d613ce8cc..dbf071560 100644 --- a/app/src/main/java/com/nextcloud/talk/controllers/SwitchAccountController.kt +++ b/app/src/main/java/com/nextcloud/talk/controllers/SwitchAccountController.kt @@ -94,7 +94,9 @@ class SwitchAccountController(args: Bundle? = null) : null, java.lang.Boolean.TRUE, null, userEntity.id, null, null, null ) .subscribe(object : Observer { - override fun onSubscribe(d: Disposable) {} + override fun onSubscribe(d: Disposable) { + // unused atm + } override fun onNext(userEntity: UserEntity) { cookieManager.cookieStore.removeAll() userUtils.disableAllUsersWithoutId(userEntity.id) @@ -103,8 +105,12 @@ class SwitchAccountController(args: Bundle? = null) : } } - override fun onError(e: Throwable) {} - override fun onComplete() {} + override fun onError(e: Throwable) { + // unused atm + } + override fun onComplete() { + // unused atm + } }) } true diff --git a/app/src/main/java/com/nextcloud/talk/controllers/bottomsheet/EntryMenuController.kt b/app/src/main/java/com/nextcloud/talk/controllers/bottomsheet/EntryMenuController.kt index 711011cb2..e37718594 100644 --- a/app/src/main/java/com/nextcloud/talk/controllers/bottomsheet/EntryMenuController.kt +++ b/app/src/main/java/com/nextcloud/talk/controllers/bottomsheet/EntryMenuController.kt @@ -114,8 +114,12 @@ class EntryMenuController(args: Bundle) : } binding.textEdit.addTextChangedListener(object : TextWatcher { - override fun beforeTextChanged(s: CharSequence, start: Int, count: Int, after: Int) {} - override fun onTextChanged(s: CharSequence, start: Int, before: Int, count: Int) {} + override fun beforeTextChanged(s: CharSequence, start: Int, count: Int, after: Int) { + // unused atm + } + override fun onTextChanged(s: CharSequence, start: Int, before: Int, count: Int) { + // unused atm + } override fun afterTextChanged(s: Editable) { if (!TextUtils.isEmpty(s)) { if (operation === ConversationOperationEnum.OPS_CODE_RENAME_ROOM) { diff --git a/app/src/main/java/com/nextcloud/talk/jobs/ContactAddressBookWorker.kt b/app/src/main/java/com/nextcloud/talk/jobs/ContactAddressBookWorker.kt index 7ac98967f..c1c96472b 100644 --- a/app/src/main/java/com/nextcloud/talk/jobs/ContactAddressBookWorker.kt +++ b/app/src/main/java/com/nextcloud/talk/jobs/ContactAddressBookWorker.kt @@ -129,9 +129,11 @@ class ContactAddressBookWorker(val context: Context, workerParameters: WorkerPar .observeOn(AndroidSchedulers.mainThread()) .subscribe(object : Observer { override fun onComplete() { + // unused atm } override fun onSubscribe(d: Disposable) { + // unused atm } override fun onNext(foundContacts: ContactsByNumberOverall) { diff --git a/app/src/main/java/com/nextcloud/talk/jobs/UploadAndShareFilesWorker.kt b/app/src/main/java/com/nextcloud/talk/jobs/UploadAndShareFilesWorker.kt index ee7f29db1..ebd77fdac 100644 --- a/app/src/main/java/com/nextcloud/talk/jobs/UploadAndShareFilesWorker.kt +++ b/app/src/main/java/com/nextcloud/talk/jobs/UploadAndShareFilesWorker.kt @@ -145,9 +145,11 @@ class UploadAndShareFilesWorker(val context: Context, workerParameters: WorkerPa .observeOn(AndroidSchedulers.mainThread()) .subscribe(object : Observer> { override fun onSubscribe(d: Disposable) { + // unused atm } override fun onNext(t: Response) { + // unused atm } override fun onError(e: Throwable) { diff --git a/app/src/main/java/com/nextcloud/talk/ui/dialog/SetStatusDialogFragment.kt b/app/src/main/java/com/nextcloud/talk/ui/dialog/SetStatusDialogFragment.kt index 306f3df13..30271b244 100644 --- a/app/src/main/java/com/nextcloud/talk/ui/dialog/SetStatusDialogFragment.kt +++ b/app/src/main/java/com/nextcloud/talk/ui/dialog/SetStatusDialogFragment.kt @@ -122,6 +122,7 @@ class SetStatusDialogFragment : .subscribe(object : Observer { override fun onSubscribe(d: Disposable) { + // unused atm } override fun onNext(responseBody: ResponseBody) { @@ -136,9 +137,12 @@ class SetStatusDialogFragment : } override fun onError(e: Throwable) { + // unused atm } - override fun onComplete() {} + override fun onComplete() { + // unused atm + } }) } } @@ -322,8 +326,12 @@ class SetStatusDialogFragment : ncApi.statusDeleteMessage(credentials, ApiUtils.getUrlForStatusMessage(currentUser?.baseUrl)) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()).subscribe(object : Observer { - override fun onSubscribe(d: Disposable) {} - override fun onNext(statusOverall: GenericOverall) {} + override fun onSubscribe(d: Disposable) { + // unused atm + } + override fun onNext(statusOverall: GenericOverall) { + // unused atm + } override fun onError(e: Throwable) { Log.e(logTag, "Failed to clear status", e) } @@ -343,7 +351,9 @@ class SetStatusDialogFragment : .io() ) .observeOn(AndroidSchedulers.mainThread()).subscribe(object : Observer { - override fun onSubscribe(d: Disposable) {} + override fun onSubscribe(d: Disposable) { + // unused atm + } override fun onNext(statusOverall: GenericOverall) { Log.d(logTag, "statusType successfully set") } @@ -353,7 +363,9 @@ class SetStatusDialogFragment : clearTopStatus() } - override fun onComplete() {} + override fun onComplete() { + // unused atm + } }) } @@ -417,6 +429,7 @@ class SetStatusDialogFragment : ?.subscribe(object : Observer { override fun onSubscribe(d: Disposable) { + // unused atm } override fun onNext(t: GenericOverall) { @@ -428,7 +441,9 @@ class SetStatusDialogFragment : Log.e(logTag, "failed to set CustomStatusMessage", e) } - override fun onComplete() {} + override fun onComplete() { + // unused atm + } }) }