Skip to content

Commit

Permalink
Fix code detekt
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <[email protected]>
  • Loading branch information
alperozturk96 committed Nov 8, 2023
1 parent 07d3ca6 commit 8abea2a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ class AccountAuthenticator(private val mContext: Context) : AbstractAccountAuthe
/**
* {@inheritDoc}
*/
@Suppress("ReturnCount")
override fun getAuthToken(
response: AccountAuthenticatorResponse,
account: Account,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 8abea2a

Please sign in to comment.