mirror of https://github.com/nextcloud/android
Fix code detekt
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
540113fe89
commit
2ec36ca2a0
|
@ -140,6 +140,7 @@ class AccountAuthenticator(private val mContext: Context) : AbstractAccountAuthe
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Suppress("ReturnCount")
|
||||
override fun getAuthToken(
|
||||
response: AccountAuthenticatorResponse,
|
||||
account: Account,
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue