Dbrant has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/169924

Change subject: Disable full-text search for production (for now)
......................................................................

Disable full-text search for production (for now)

Change-Id: Ib920c19dd4e09d055c906e705e102dacf7694871
---
M wikipedia/src/main/java/org/wikipedia/search/SearchArticlesFragment.java
1 file changed, 9 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/apps/android/wikipedia 
refs/changes/24/169924/1

diff --git 
a/wikipedia/src/main/java/org/wikipedia/search/SearchArticlesFragment.java 
b/wikipedia/src/main/java/org/wikipedia/search/SearchArticlesFragment.java
index 9b37324..36b314c 100644
--- a/wikipedia/src/main/java/org/wikipedia/search/SearchArticlesFragment.java
+++ b/wikipedia/src/main/java/org/wikipedia/search/SearchArticlesFragment.java
@@ -296,10 +296,15 @@
         // show ourselves
         searchContainerView.setVisibility(View.VISIBLE);
 
-        // find out whether full-text search has been disabled remotely, and
-        // hide the title/full switcher buttons accordingly.
-        fullSearchDisabled = app.getRemoteConfig().getConfig()
-                .optBoolean("disableFullTextSearch", false);
+        // TODO: remove this when ready for production
+        if (app.getReleaseType() == WikipediaApp.RELEASE_PROD) {
+            fullSearchDisabled = true;
+        } else {
+            // find out whether full-text search has been disabled remotely, 
and
+            // hide the title/full switcher buttons accordingly.
+            fullSearchDisabled = app.getRemoteConfig().getConfig()
+                    .optBoolean("disableFullTextSearch", false);
+        }
         getView().findViewById(R.id.search_type_button_container)
                 .setVisibility(fullSearchDisabled ? View.GONE : View.VISIBLE);
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib920c19dd4e09d055c906e705e102dacf7694871
Gerrit-PatchSet: 1
Gerrit-Project: apps/android/wikipedia
Gerrit-Branch: master
Gerrit-Owner: Dbrant <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to