put version code

feat_androidx_migration
hvarona 2018-11-25 20:56:00 -04:00
parent 178a0de26b
commit 56a3c006cc
4 changed files with 6 additions and 6 deletions

View File

@ -22,8 +22,8 @@ android {
applicationId "cy.agorise.crystalwallet"
minSdkVersion 21
targetSdkVersion 27
versionCode 4
versionName "0.4M.alpha"
versionCode 5
versionName "0.5M.alpha"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary true

View File

@ -75,7 +75,7 @@ public class InsightApiGenerator {
GetEstimateFee.getEstimateFee(CryptoNetManager.getURL(cryptoCoin.getCryptoNet()),
new GetEstimateFee.estimateFeeListener() {
@Override
public void estimateFee(long value) {
public void estimateFee(double value) {
request.listener.success(value,request.getId());
}

View File

@ -35,7 +35,7 @@ public abstract class GetEstimateFee {
call.enqueue(new Callback<JsonObject>() {
@Override
public void onResponse(Call<JsonObject> call, Response<JsonObject> response) {
listener.estimateFee((long) (response.body().get("2").getAsDouble()));
listener.estimateFee((double) (response.body().get("2").getAsDouble()));
}
@ -52,7 +52,7 @@ public abstract class GetEstimateFee {
}
public static interface estimateFeeListener{
public void estimateFee(long value);
public void estimateFee(double value);
public void fail();
}

View File

@ -380,7 +380,7 @@ public class GeneralAccountManager implements CryptoAccountManager, CryptoNetInf
Transaction tx = new Transaction(cryptoCoin.getParameters());
long currentAmount = 0;
long fee = -1;
long feeRate = (Long) answer;
long feeRate = (long)(((double)answer) * Math.pow(10,cryptoCoin.getPrecision()));
fee = 226 * feeRate;
CrystalDatabase db = CrystalDatabase.getAppDatabase(request.getContext());