Bug 1156268 - Put the 'didRestart' Intent extra in when restarting r=jchen
authortravis <travis@browser.html>
Tue, 21 Apr 2015 10:23:59 -0500
changeset 240204 2798bdbedfb79696284989915753968bed72a094
parent 240203 d90c697eead227a7e33896705e4e1335ac337c4c
child 240205 2465753985250a97cb796fca7c508a27c1805143
push id58773
push userjwillcox@mozilla.com
push dateTue, 21 Apr 2015 15:56:18 +0000
treeherdermozilla-inbound@2798bdbedfb7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjchen
bugs1156268
milestone40.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 1156268 - Put the 'didRestart' Intent extra in when restarting r=jchen
mobile/android/base/Restarter.java
--- a/mobile/android/base/Restarter.java
+++ b/mobile/android/base/Restarter.java
@@ -24,16 +24,17 @@ public class Restarter extends Service {
         Log.d(LOGTAG, "Killed " + oldProc);
         try {
             Thread.sleep(100);
         } catch (final InterruptedException e) {
         }
 
         final Intent restartIntent = (Intent)intent.getParcelableExtra(Intent.EXTRA_INTENT);
         restartIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
+                     .putExtra("didRestart", true)
                      .setClassName(getApplicationContext(),
                                    AppConstants.BROWSER_INTENT_CLASS_NAME);
         startActivity(restartIntent);
         Log.d(LOGTAG, "Launched " + restartIntent);
     }
 
     @Override
     public int onStartCommand(Intent intent, int flags, int startId) {