jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/370646 )

Change subject: Show offline feed card only for pre-beta releases
......................................................................


Show offline feed card only for pre-beta releases

Bug: T172791
Change-Id: I57bebf1fb4b0e8819e730539411b8aac35380740
---
M app/src/main/java/org/wikipedia/feed/FeedCoordinator.java
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Dbrant: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/app/src/main/java/org/wikipedia/feed/FeedCoordinator.java 
b/app/src/main/java/org/wikipedia/feed/FeedCoordinator.java
index 2012a1c..bc1f2d0 100644
--- a/app/src/main/java/org/wikipedia/feed/FeedCoordinator.java
+++ b/app/src/main/java/org/wikipedia/feed/FeedCoordinator.java
@@ -13,6 +13,8 @@
 import org.wikipedia.feed.searchbar.SearchClient;
 import org.wikipedia.util.DeviceUtil;
 
+import static org.wikipedia.util.ReleaseUtil.isPreBetaRelease;
+
 class FeedCoordinator extends FeedCoordinatorBase {
 
     FeedCoordinator(@NonNull Context context) {
@@ -24,7 +26,7 @@
         boolean online = DeviceUtil.isOnline();
 
         conditionallyAddPendingClient(new SearchClient(), age == 0);
-        conditionallyAddPendingClient(new OfflineCompilationClient(), age == 0 
&& !online);
+        conditionallyAddPendingClient(new OfflineCompilationClient(), age == 0 
&& !online && isPreBetaRelease());
         conditionallyAddPendingClient(new AnnouncementClient(), age == 0 && 
online);
         conditionallyAddPendingClient(new AggregatedFeedContentClient(), 
online);
         addPendingClient(new ContinueReadingClient());

-- 
To view, visit https://gerrit.wikimedia.org/r/370646
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I57bebf1fb4b0e8819e730539411b8aac35380740
Gerrit-PatchSet: 1
Gerrit-Project: apps/android/wikipedia
Gerrit-Branch: master
Gerrit-Owner: Mholloway <mhollo...@wikimedia.org>
Gerrit-Reviewer: Brion VIBBER <br...@wikimedia.org>
Gerrit-Reviewer: Dbrant <dbr...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to