diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser index f348dc2ec..816f4a0f9 100644 Binary files a/.idea/caches/build_file_checksums.ser and b/.idea/caches/build_file_checksums.ser differ diff --git a/.idea/caches/gradle_models.ser b/.idea/caches/gradle_models.ser index d5bf2f8b2..4f43a5b0f 100644 Binary files a/.idea/caches/gradle_models.ser and b/.idea/caches/gradle_models.ser differ diff --git a/app/build.gradle b/app/build.gradle index 029eab7d6..0cdbe0174 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -7,8 +7,8 @@ android { applicationId = 'com.wagerrwallet' minSdkVersion 23 targetSdkVersion 28 - versionCode 251 - versionName "251" + versionCode 252 + versionName "252" multiDexEnabled true // Similar to other properties in the defaultConfig block, diff --git a/app/src/main/java/com/wagerrwallet/presenter/fragments/FragmentEventDetails.java b/app/src/main/java/com/wagerrwallet/presenter/fragments/FragmentEventDetails.java index 0e09e91b9..219715930 100644 --- a/app/src/main/java/com/wagerrwallet/presenter/fragments/FragmentEventDetails.java +++ b/app/src/main/java/com/wagerrwallet/presenter/fragments/FragmentEventDetails.java @@ -262,11 +262,22 @@ public void onFocusChange(View v, boolean hasFocus) { int value = minvalue; int balance = (int)(walletManager.getWallet().getBalance()/UNIT_MULTIPLIER); int maxvalue = Math.min(getContext().getResources().getInteger(R.integer.max_bet_amount), balance ); + if (!hasFocus) { try { value = Integer.parseInt(mTxAmount.getText().toString()); if ( value < minvalue ) value = minvalue; - if ( value > maxvalue ) value = maxvalue; + if ( value > maxvalue ) { + value = maxvalue; + // add message + BRDialog.showCustomDialog(getContext(), "Warning", String.format("Transaction reduced to maximum of %d WGR", maxvalue), getContext().getString(R.string.Button_ok), null, new BRDialogView.BROnClickListener() { + @Override + public void onClick(BRDialogView brDialogView) { + brDialogView.dismiss(); + } + }, null, null, 0); + + } mTxAmount.setText(String.valueOf(value)); } catch (NumberFormatException e) {