Bug 1316002: Fixed '==' comparison of strings; r=sebastian
authorSwaroop Rao <swaroop.rao@gmail.com>
Fri, 11 Nov 2016 15:08:55 -0500
changeset 323019 d444cb9e676df82f6a793e1e05f2dcec66f679e9
parent 323018 d5a2a49e72d87c2ecb8b2fad64ca30b9e81b8996
child 323020 fc1cb5366882e142eb6b5f455e07f5d3dd435883
push id21
push usermaklebus@msu.edu
push dateThu, 01 Dec 2016 06:22:08 +0000
reviewerssebastian
bugs1316002
milestone53.0a1
Bug 1316002: Fixed '==' comparison of strings; r=sebastian MozReview-Commit-ID: ERo8gOjsXB8
mobile/android/base/java/org/mozilla/gecko/home/HomeAdapter.java
--- a/mobile/android/base/java/org/mozilla/gecko/home/HomeAdapter.java
+++ b/mobile/android/base/java/org/mozilla/gecko/home/HomeAdapter.java
@@ -195,17 +195,17 @@ public class HomeAdapter extends Fragmen
             return mPanelConfig.getTitle();
         }
 
         public String getClassName(Context context) {
             final PanelType type = mPanelConfig.getType();
 
             // Override top_sites with ActivityStream panel when enabled
             // PanelType.toString() returns the panel id
-            if (type.toString() == "top_sites" &&
+            if ("top_sites".equals(type.toString()) &&
                 ActivityStream.isEnabled(context) &&
                 ActivityStream.isHomePanel()) {
                 return ActivityStreamHomeFragment.class.getName();
             }
             return type.getPanelClass().getName();
         }
 
         public Bundle getArgs() {