Bug 1299925 - Override onBackPressed in CustomTabsActivity to finish the activity. r=snorp
authorDylan Roeh <droeh@mozilla.com>
Thu, 01 Sep 2016 17:17:14 -0500
changeset 312439 bdf79acb0726bf6e46453d3c94ad1df63a53b3ee
parent 312438 2ec87b37b16d0c4f8a966b8fe69c5042488d17d8
child 312440 e89e213ef1facaf2d3c9cf4b0920f52ba269a3e3
push id20447
push userkwierso@gmail.com
push dateFri, 02 Sep 2016 20:36:44 +0000
treeherderfx-team@969397f22187 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssnorp
bugs1299925
milestone51.0a1
Bug 1299925 - Override onBackPressed in CustomTabsActivity to finish the activity. r=snorp
mobile/android/base/java/org/mozilla/gecko/customtabs/CustomTabsActivity.java
--- a/mobile/android/base/java/org/mozilla/gecko/customtabs/CustomTabsActivity.java
+++ b/mobile/android/base/java/org/mozilla/gecko/customtabs/CustomTabsActivity.java
@@ -15,9 +15,14 @@ public class CustomTabsActivity extends 
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
     }
 
     @Override
     public int getLayout() {
         return R.layout.customtabs_activity;
     }
+
+    @Override
+    public void onBackPressed() {
+        finish();
+    }
 }