Bug 1055264 - Fixed profile image update after sync now r=nalexander
authorvivek <vivekb.balakrishnan@gmail.com>
Wed, 05 Aug 2015 00:47:08 +0300
changeset 287809 80b69899262f9f0c7976dc2d22500e8f547fc96c
parent 287808 ef5d702576b265f5aacfda3ac0de5236c037d2b0
child 287810 ad37329e81ced1f0480fb59572d6a2855cc0e86b
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnalexander
bugs1055264
milestone42.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1055264 - Fixed profile image update after sync now r=nalexander
mobile/android/base/fxa/authenticator/AndroidFxAccount.java
--- a/mobile/android/base/fxa/authenticator/AndroidFxAccount.java
+++ b/mobile/android/base/fxa/authenticator/AndroidFxAccount.java
@@ -784,17 +784,17 @@ public class AndroidFxAccount {
     protected void onReceiveResult(int resultCode, Bundle bundle) {
       super.onReceiveResult(resultCode, bundle);
       switch (resultCode) {
         case Activity.RESULT_OK:
           final String resultData = bundle.getString(FxAccountProfileService.KEY_RESULT_STRING);
           updateBundleValues(BUNDLE_KEY_PROFILE_JSON, resultData);
           Logger.info(LOG_TAG, "Profile JSON fetch succeeeded!");
           FxAccountUtils.pii(LOG_TAG, "Profile JSON fetch returned: " + resultData);
-          LocalBroadcastManager.getInstance(context).sendBroadcast(makeDeletedAccountIntent());
+          LocalBroadcastManager.getInstance(context).sendBroadcast(makeProfileJSONUpdatedIntent());
           break;
         case Activity.RESULT_CANCELED:
           Logger.warn(LOG_TAG, "Failed to fetch profile JSON; ignoring.");
           break;
         default:
           Logger.warn(LOG_TAG, "Invalid result code received; ignoring.");
           break;
       }