Bug 1336084 - Remove unneeded isForegrounded() call r=sebastian a=gchang
authorAndrzej Hunt <ahunt@mozilla.com>
Thu, 02 Feb 2017 10:37:58 -0800
changeset 378318 eabe078e61706f56a0db391da2076717c99ac318
parent 378317 35072b8a12710b726bad9ec1daaff3c146ae3c74
child 378319 bc736e4fab076b947c7918dba41af3d015e3ad22
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssebastian, gchang
bugs1336084, 1120441
milestone53.0a2
Bug 1336084 - Remove unneeded isForegrounded() call r=sebastian a=gchang I accidentally added this while working on a fix for Bug 1120441, and forgot to remove it before landing. This call isn't harmful, but it's unnecessary. MozReview-Commit-ID: FrnhoYWFvKR
mobile/android/base/java/org/mozilla/gecko/BrowserApp.java
--- a/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java
+++ b/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java
@@ -664,17 +664,16 @@ public class BrowserApp extends GeckoApp
                             // shut down (in which case trying to perform UI changes, such as showing
                             // fragments below, will crash).
                             return;
                         }
 
                         final TabHistoryFragment fragment = TabHistoryFragment.newInstance(historyPageList, toIndex);
                         final FragmentManager fragmentManager = getSupportFragmentManager();
                         GeckoAppShell.vibrateOnHapticFeedbackEnabled(getResources().getIntArray(R.array.long_press_vibrate_msec));
-                        if (BrowserApp.this.isForegrounded())
                         fragment.show(R.id.tab_history_panel, fragmentManager.beginTransaction(), TAB_HISTORY_FRAGMENT_TAG);
                     }
                 });
             }
         });
         mBrowserToolbar.setTabHistoryController(tabHistoryController);
 
         final String action = intent.getAction();