Merge "Deprecate account-specific activity subclass"

This commit is contained in:
Charles Munger
2019-11-19 16:42:55 +00:00
committed by Gerrit Code Review
3 changed files with 7 additions and 5 deletions

View File

@@ -3021,9 +3021,9 @@ package android.accounts {
field public final String type;
}
public class AccountAuthenticatorActivity extends android.app.Activity {
ctor public AccountAuthenticatorActivity();
method public final void setAccountAuthenticatorResult(android.os.Bundle);
@Deprecated public class AccountAuthenticatorActivity extends android.app.Activity {
ctor @Deprecated public AccountAuthenticatorActivity();
method @Deprecated public final void setAccountAuthenticatorResult(android.os.Bundle);
}
public class AccountAuthenticatorResponse implements android.os.Parcelable {

View File

@@ -103,8 +103,6 @@ import java.util.Arrays;
* When writing an activity to satisfy these requests one must pass in the AccountManagerResponse
* and return the result via that response when the activity finishes (or whenever else the
* activity author deems it is the correct time to respond).
* The {@link AccountAuthenticatorActivity} handles this, so one may wish to extend that when
* writing activities to handle these requests.
*/
public abstract class AbstractAccountAuthenticator {
private static final String TAG = "AccountAuthenticator";

View File

@@ -32,7 +32,11 @@ import 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 {@link AccountManager#ERROR_CODE_CANCELED}
* will be called on the response.
*
* @deprecated Applications should extend Activity themselves. This class is not compatible with
* AppCompat, and the functionality it provides is not complex.
*/
@Deprecated
public class AccountAuthenticatorActivity extends Activity {
private AccountAuthenticatorResponse mAccountAuthenticatorResponse = null;
private Bundle mResultBundle = null;