From e6350396be48e3984ed4f14f4de15ef21e9e8f64 Mon Sep 17 00:00:00 2001 From: hvarona Date: Wed, 5 Sep 2018 23:45:03 -0400 Subject: [PATCH] Change the insight serverUrl, to make it not a constant but selected by the app --- .../apigenerator/insightapi/AccountActivityWatcher.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/cy/agorise/crystalwallet/apigenerator/insightapi/AccountActivityWatcher.java b/app/src/main/java/cy/agorise/crystalwallet/apigenerator/insightapi/AccountActivityWatcher.java index 8bbcdf8..1745efb 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/apigenerator/insightapi/AccountActivityWatcher.java +++ b/app/src/main/java/cy/agorise/crystalwallet/apigenerator/insightapi/AccountActivityWatcher.java @@ -43,6 +43,8 @@ public class AccountActivityWatcher { */ private final Context mContext; + private final String mServerUrl; + /** * Handles the address/transaction notification. * Then calls the GetTransactionData to get the info of the new transaction @@ -53,7 +55,7 @@ public class AccountActivityWatcher { try { System.out.println("Receive accountActivtyWatcher " + os[0].toString() ); String txid = ((JSONObject) os[0]).getString(InsightApiConstants.sTxTag); - new GetTransactionData(txid, mAccount, mContext).start(); + new GetTransactionData(txid, mAccount, mServerUrl, mContext).start(); } catch (JSONException ex) { Logger.getLogger(AccountActivityWatcher.class.getName()).log(Level.SEVERE, null, ex); } @@ -107,6 +109,7 @@ public class AccountActivityWatcher { * @param mContext This app mContext */ public AccountActivityWatcher(String serverUrl, GeneralCoinAccount mAccount, Context mContext) { + this.mServerUrl = serverUrl; this.mAccount = mAccount; this.mContext = mContext; try {