Bug 746517 - View thread permission crash. r=rnewman, a=blocking-fennec
authorChenxia Liu <liuche@mozilla.com>
Thu, 19 Apr 2012 17:14:30 -0700
changeset 95331 3a9db9c55f140cf04d28157bb8c5e6d49cf5509b
parent 95330 eec7626671fae19008b98f635c59f98633357d99
child 95332 492d12fa8b657824f4620e70d87bea908076a2ba
push id886
push userlsblakk@mozilla.com
push dateMon, 04 Jun 2012 19:57:52 +0000
treeherdermozilla-beta@bbd8d5efd6d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrnewman, blocking-fennec
bugs746517
milestone14.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 746517 - View thread permission crash. r=rnewman, a=blocking-fennec
mobile/android/base/sync/setup/activities/SetupSyncActivity.java
--- a/mobile/android/base/sync/setup/activities/SetupSyncActivity.java
+++ b/mobile/android/base/sync/setup/activities/SetupSyncActivity.java
@@ -247,17 +247,22 @@ public class SetupSyncActivity extends A
   }
 
   /**
    * Abort current J-PAKE pairing. Clear forms/restart pairing.
    * @param error
    */
   public void displayAbort(String error) {
     if (!Constants.JPAKE_ERROR_USERABORT.equals(error) && !hasInternet()) {
-      setContentView(R.layout.sync_setup_nointernet);
+      runOnUiThread(new Runnable() {
+        @Override
+        public void run() {
+          setContentView(R.layout.sync_setup_nointernet);
+        }
+      });
       return;
     }
     if (pairWithPin) {
       // Clear PIN entries and display error.
       runOnUiThread(new Runnable() {
         @Override
         public void run() {
           enablePinEntry(true);