No Bug - When there is nothing left in session history, do not finish(), but call moveTaskToBack(). r=bnicholson
☠☠ backed out by 3e1e9e88c794 ☠ ☠
authorDoug Turner <dougt@dougt.org>
Wed, 02 Nov 2011 23:20:19 -0700
changeset 83358 c09a52af4cd8573f602571d96a9254f3f2ecf9a0
parent 83357 03c53ee42fc9c1597ac45e987bfedefc2a8c39c8
child 83359 c1881e7e046c05bf0ee3b282678bc7b1183bcdaf
push id519
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 00:38:35 +0000
treeherdermozilla-beta@788ea1ef610b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbnicholson
milestone10.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
No Bug - When there is nothing left in session history, do not finish(), but call moveTaskToBack(). r=bnicholson
embedding/android/GeckoApp.java
--- a/embedding/android/GeckoApp.java
+++ b/embedding/android/GeckoApp.java
@@ -1428,17 +1428,17 @@ abstract public class GeckoApp
 
         return tab.doForward();
     }
 
     @Override
     public void onBackPressed() {
         Tab tab = Tabs.getInstance().getSelectedTab();
         if (tab == null || !tab.doBack()) {
-            finish();
+            moveTaskToBack(true);
         }
     }
 
     static int kCaptureIndex = 0;
 
     @Override
     protected void onActivityResult(int requestCode, int resultCode,
                                     Intent data) {