Bug 1297127 - add ActivityStream.isHomePanel() fake-pref for switching from HomeScreen to HomePanel r?sebastian
This will allow us to more easily switch ActivityStream from being a HomePanel to being a complete
HomePager replacement - this could potentially be extended to read from a preference, but hardcoding
is probably sufficient for now.
MozReview-Commit-ID: HxQg5bOTmdh
--- a/mobile/android/base/java/org/mozilla/gecko/activitystream/ActivityStream.java
+++ b/mobile/android/base/java/org/mozilla/gecko/activitystream/ActivityStream.java
@@ -15,9 +15,17 @@ public class ActivityStream {
public static boolean isEnabled(Context context) {
if (!AppConstants.MOZ_ANDROID_ACTIVITY_STREAM) {
return false;
}
return GeckoSharedPrefs.forApp(context)
.getBoolean(GeckoPreferences.PREFS_ACTIVITY_STREAM, false);
}
+
+ /**
+ * Query whether we want to display Activity Stream as a Home Panel (within the Home Panel),
+ * or as a HomePager replacement.
+ */
+ public static boolean isHomePanel() {
+ return false;
+ }
}