From 83fde4b81df1a393c2391f40f133e25a9e4b7dff Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Wed, 8 Mar 2017 17:27:06 +0000 Subject: [PATCH] Use DEBUG_REMOTE_URL to also override the webUri. Before this commit it was only used to override the api endpoint, not it's also used to override the weburl. This is needed since we now load the etesync website inside the app and not in an external web browser. --- app/src/main/java/com/etesync/syncadapter/Constants.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/etesync/syncadapter/Constants.java b/app/src/main/java/com/etesync/syncadapter/Constants.java index ee1a50e3..81f4300a 100644 --- a/app/src/main/java/com/etesync/syncadapter/Constants.java +++ b/app/src/main/java/com/etesync/syncadapter/Constants.java @@ -26,7 +26,7 @@ public class Constants { NOTIFICATION_TASK_SYNC = 12, NOTIFICATION_PERMISSIONS = 20; - public static final Uri webUri = Uri.parse("https://www.etesync.com/"); + public static final Uri webUri = Uri.parse((DEBUG_REMOTE_URL == null) ? "https://www.etesync.com/" : DEBUG_REMOTE_URL); public static final Uri contactUri = Uri.parse("mailto:contact.app@etesync.com"); public static final Uri registrationUrl = webUri.buildUpon().appendEncodedPath("accounts/signup/").build(); public static final Uri reportIssueUri = Uri.parse("https://github.com/etesync/android/issues");