Fixed the Google Shopper button remaining visible after scanning a product, and bumpe...
[zxing.git] / android / src / com / google / zxing / client / android / result / ResultHandler.java
index 3020dc5..5c88165 100644 (file)
@@ -94,6 +94,11 @@ public abstract class ResultHandler {
     this.activity = activity;
     this.rawResult = rawResult;
     this.customProductSearch = parseCustomSearchURL();
+
+    // Make sure the Shopper button is hidden by default. Without this, scanning a product followed
+    // by a QR Code would leave the button on screen among the QR Code actions.
+    Button shopperButton = (Button) activity.findViewById(R.id.shopper_button);
+    shopperButton.setVisibility(View.GONE);
   }
 
   ParsedResult getResult() {