Skip to content

Commit f27477e

Browse files
binokarygjkuester
andauthored
Check allowCustomHosts
instead of allowsConfiguration, as per PR feedback Co-authored-by: Joshua Kuestersteffen <jkuester@kuester7.com>
1 parent 2986d73 commit f27477e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/medicmobile/webapp/mobile/EmbeddedBrowserActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public void onReceiveValue(String result) {
8686

8787
// Add an alarming red border if using configurable (i.e. dev)
8888
// app with a medic production server.
89-
if (settings.allowsConfiguration() && appUrl != null && appUrl.contains("app.medicmobile.org") && !isProductionApp) {
89+
if (settings.allowCustomHosts() && appUrl != null && appUrl.contains("app.medicmobile.org")) {
9090
View webviewContainer = findViewById(R.id.lytWebView);
9191
webviewContainer.setPadding(10, 10, 10, 10);
9292
webviewContainer.setBackgroundResource(R.drawable.warning_background);

0 commit comments

Comments
 (0)