am d13e3396
: Merge "Pass flag to indicate multiple users on device" into jb-mr1-dev
* commit 'd13e3396852b4a98c46f2fc02d7a81dcdc1ab7f5': Pass flag to indicate multiple users on device
This commit is contained in:
@@ -71,6 +71,9 @@ public class AddAccountSettings extends Activity {
|
|||||||
|
|
||||||
/* package */ static final String EXTRA_SELECTED_ACCOUNT = "selected_account";
|
/* package */ static final String EXTRA_SELECTED_ACCOUNT = "selected_account";
|
||||||
|
|
||||||
|
// show additional info regarding the use of a device with multiple users
|
||||||
|
static final String EXTRA_HAS_MULTIPLE_USERS = "hasMultipleUsers";
|
||||||
|
|
||||||
private static final int CHOOSE_ACCOUNT_REQUEST = 1;
|
private static final int CHOOSE_ACCOUNT_REQUEST = 1;
|
||||||
|
|
||||||
private static final int DLG_MULTIUSER_WARNING = 1;
|
private static final int DLG_MULTIUSER_WARNING = 1;
|
||||||
@@ -193,6 +196,7 @@ public class AddAccountSettings extends Activity {
|
|||||||
Bundle addAccountOptions = new Bundle();
|
Bundle addAccountOptions = new Bundle();
|
||||||
mPendingIntent = PendingIntent.getBroadcast(this, 0, new Intent(), 0);
|
mPendingIntent = PendingIntent.getBroadcast(this, 0, new Intent(), 0);
|
||||||
addAccountOptions.putParcelable(KEY_CALLER_IDENTITY, mPendingIntent);
|
addAccountOptions.putParcelable(KEY_CALLER_IDENTITY, mPendingIntent);
|
||||||
|
addAccountOptions.putBoolean(EXTRA_HAS_MULTIPLE_USERS, Utils.hasMultipleUsers(this));
|
||||||
AccountManager.get(this).addAccount(
|
AccountManager.get(this).addAccount(
|
||||||
accountType,
|
accountType,
|
||||||
null, /* authTokenType */
|
null, /* authTokenType */
|
||||||
|
Reference in New Issue
Block a user