org.chromium.chrome.browser.firstrun.ProfileDataCache Java Examples
The following examples show how to use
org.chromium.chrome.browser.firstrun.ProfileDataCache.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AccountSigninChooseView.java From delion with Apache License 2.0 | 5 votes |
/** * Updates candidate accounts' profile image. * * @param profileData The ProfileDataCache contains accounts' profile image. */ public void updateAccountProfileImages(ProfileDataCache profileData) { // Do not update the last "Add account" view. for (int i = mAccountViewStartIndex; i < mRootChildView.getChildCount() - 1; i++) { View view = mRootChildView.getChildAt(i); String accountEmail = ((TextView) view.findViewById(R.id.account_name)).getText().toString(); ((ImageView) view.findViewById(R.id.account_image)) .setImageBitmap(profileData.getImage(accountEmail)); } }
Example #2
Source File: AccountSigninChooseView.java From AndroidChromium with Apache License 2.0 | 5 votes |
/** * Updates candidate accounts' profile image. * * @param profileData The ProfileDataCache contains accounts' profile image. */ public void updateAccountProfileImages(ProfileDataCache profileData) { // Do not update the last "Add account" view. for (int i = mAccountViewStartIndex; i < mRootChildView.getChildCount() - 1; i++) { View view = mRootChildView.getChildAt(i); String accountEmail = ((TextView) view.findViewById(R.id.account_name)).getText().toString(); ((ImageView) view.findViewById(R.id.account_image)) .setImageBitmap(profileData.getImage(accountEmail)); } }
Example #3
Source File: AccountSigninView.java From AndroidChromium with Apache License 2.0 | 5 votes |
/** * Initializes this view with profile data cache, delegate and listener. * @param profileData ProfileDataCache that will be used to call to retrieve user account info. * @param delegate The UI object creation delegate. * @param listener The account selection event listener. */ public void init(ProfileDataCache profileData, Delegate delegate, Listener listener) { mProfileData = profileData; mProfileData.setObserver(this); mDelegate = delegate; mListener = listener; showSigninPage(); }
Example #4
Source File: AccountSigninChooseView.java From 365browser with Apache License 2.0 | 5 votes |
/** * Updates candidate accounts' profile image. * * @param profileData The ProfileDataCache contains accounts' profile image. */ public void updateAccountProfileImages(ProfileDataCache profileData) { // Do not update the last "Add account" view. for (int i = mAccountViewStartIndex; i < mRootChildView.getChildCount() - 1; i++) { View view = mRootChildView.getChildAt(i); String accountEmail = ((TextView) view.findViewById(R.id.account_name)).getText().toString(); ((ImageView) view.findViewById(R.id.account_image)) .setImageBitmap(profileData.getImage(accountEmail)); } }
Example #5
Source File: AccountSigninView.java From 365browser with Apache License 2.0 | 5 votes |
/** * Initializes this view with profile data cache, delegate and listener. * @param profileData ProfileDataCache that will be used to call to retrieve user account info. * @param isChildAccount Whether this view is for a child account. * @param forcedAccountName An account that should be force-selected. * @param delegate The UI object creation delegate. * @param listener The account selection event listener. */ public void init(ProfileDataCache profileData, boolean isChildAccount, String forcedAccountName, Delegate delegate, Listener listener) { mProfileData = profileData; mProfileData.addObserver(this); mIsChildAccount = isChildAccount; mForcedAccountName = TextUtils.isEmpty(forcedAccountName) ? null : forcedAccountName; mDelegate = delegate; mListener = listener; showSigninPage(); }
Example #6
Source File: AccountSigninView.java From delion with Apache License 2.0 | 4 votes |
/** * Initializes this view with profile images and full names. * @param profileData ProfileDataCache that will be used to call to retrieve user account info. */ public void init(ProfileDataCache profileData) { mProfileData = profileData; mProfileData.setObserver(this); showSigninPage(); }