document empty blocks

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2022-03-10 18:38:27 +01:00
parent 96b9b1083c
commit 2102f0fbc8
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
9 changed files with 65 additions and 18 deletions

View file

@ -283,6 +283,7 @@ class MagicFirebaseMessagingService : FirebaseMessagingService() {
.subscribeOn(Schedulers.io())
.subscribe(object : Observer<ParticipantsOverall> {
override fun onSubscribe(d: Disposable) {
// unused atm
}
override fun onNext(participantsOverall: ParticipantsOverall) {

View file

@ -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 {

View file

@ -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) }

View file

@ -433,7 +433,9 @@ class ChatController(args: Bundle) :
}
}
override fun onFailureImpl(dataSource: DataSource<CloseableReference<CloseableImage>>) {}
override fun onFailureImpl(dataSource: DataSource<CloseableReference<CloseableImage>>) {
// 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")

View file

@ -94,7 +94,9 @@ class SwitchAccountController(args: Bundle? = null) :
null, java.lang.Boolean.TRUE, null, userEntity.id, null, null, null
)
.subscribe(object : Observer<UserEntity> {
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

View file

@ -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) {

View file

@ -129,9 +129,11 @@ class ContactAddressBookWorker(val context: Context, workerParameters: WorkerPar
.observeOn(AndroidSchedulers.mainThread())
.subscribe(object : Observer<ContactsByNumberOverall> {
override fun onComplete() {
// unused atm
}
override fun onSubscribe(d: Disposable) {
// unused atm
}
override fun onNext(foundContacts: ContactsByNumberOverall) {

View file

@ -145,9 +145,11 @@ class UploadAndShareFilesWorker(val context: Context, workerParameters: WorkerPa
.observeOn(AndroidSchedulers.mainThread())
.subscribe(object : Observer<Response<GenericOverall>> {
override fun onSubscribe(d: Disposable) {
// unused atm
}
override fun onNext(t: Response<GenericOverall>) {
// unused atm
}
override fun onError(e: Throwable) {

View file

@ -122,6 +122,7 @@ class SetStatusDialogFragment :
.subscribe(object : Observer<ResponseBody> {
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<GenericOverall> {
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<GenericOverall> {
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<GenericOverall> {
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
}
})
}