Fix code detekt

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2023-11-08 15:25:42 +01:00 committed by Alper Öztürk
parent 540113fe89
commit 2ec36ca2a0
2 changed files with 11 additions and 5 deletions

View File

@ -140,6 +140,7 @@ class AccountAuthenticator(private val mContext: Context) : AbstractAccountAuthe
/**
* {@inheritDoc}
*/
@Suppress("ReturnCount")
override fun getAuthToken(
response: AccountAuthenticatorResponse,
account: Account,

View File

@ -22,13 +22,18 @@ import androidx.appcompat.app.AppCompatActivity
import com.nextcloud.utils.extensions.getParcelableArgument
/*
* Base class for implementing an Activity that is used to help implement an AbstractAccountAuthenticator.
* If the AbstractAccountAuthenticator needs to use an activity to handle the request then it can have the activity extend
* AccountAuthenticatorActivity. The AbstractAccountAuthenticator passes in the response to the intent using the following:
* Base class for implementing an Activity that is used to help
* implement an AbstractAccountAuthenticator.
* If the AbstractAccountAuthenticator needs to use an activity to handle
* the request then it can have the activity extend
* AccountAuthenticatorActivity. The AbstractAccountAuthenticator passes
* in the response to the intent using the following:
* intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response);
*
* The activity then sets the result that is to be handed to the response via setAccountAuthenticatorResult(android.os.Bundle).
* This result will be sent as the result of the request when the activity finishes. If this is never set or if it is set to null
* The activity then sets the result that is to be handed to the response via
* setAccountAuthenticatorResult(android.os.Bundle).
* This result will be sent as the result of the request when the activity
* finishes. If this is never set or if it is set to null
* then error AccountManager.ERROR_CODE_CANCELED will be called on the response.
*/
abstract class AccountAuthenticatorActivity : AppCompatActivity() {