From 03dd5c1bc9aa09f501fe30ff227aef10bb364f49 Mon Sep 17 00:00:00 2001 From: Shobhit Agarwal Date: Sun, 14 Apr 2019 01:13:12 +0530 Subject: [PATCH] Remove member variable initialization This is being injected by the instrumentationTests for mocking. So use that instead of creating an actual one. --- .../java/org/odk/collect/android/widgets/ExStringWidget.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collect_app/src/main/java/org/odk/collect/android/widgets/ExStringWidget.java b/collect_app/src/main/java/org/odk/collect/android/widgets/ExStringWidget.java index fc08f98e3da..08550b71d68 100644 --- a/collect_app/src/main/java/org/odk/collect/android/widgets/ExStringWidget.java +++ b/collect_app/src/main/java/org/odk/collect/android/widgets/ExStringWidget.java @@ -107,7 +107,7 @@ public class ExStringWidget extends QuestionWidget implements BinaryWidget { private final Button launchIntentButton; private final Drawable textBackground; - private ActivityAvailability activityAvailability = new ActivityAvailability(getContext()); + private ActivityAvailability activityAvailability; public ExStringWidget(Context context, FormEntryPrompt prompt) {