Remove testing cases
This commit is contained in:
parent
b7223e4997
commit
c7cb37347d
4 changed files with 11 additions and 9 deletions
|
@ -118,7 +118,7 @@ public class BoardActivity extends CustomActivity {
|
||||||
/*
|
/*
|
||||||
* Listener tabLayout to resalt text when clicked
|
* Listener tabLayout to resalt text when clicked
|
||||||
* */
|
* */
|
||||||
/*final TabLayout tabLayoutFinal = tabLayout;
|
final TabLayout tabLayoutFinal = tabLayout;
|
||||||
tabLayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {
|
tabLayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onTabSelected(final TabLayout.Tab tab) {
|
public void onTabSelected(final TabLayout.Tab tab) {
|
||||||
|
@ -162,7 +162,7 @@ public class BoardActivity extends CustomActivity {
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});*/
|
});
|
||||||
|
|
||||||
// Appbar animation
|
// Appbar animation
|
||||||
mSurfaceView.getHolder().addCallback(new SurfaceHolder.Callback() {
|
mSurfaceView.getHolder().addCallback(new SurfaceHolder.Callback() {
|
||||||
|
|
|
@ -11,6 +11,8 @@ import android.widget.EditText;
|
||||||
import android.widget.Spinner;
|
import android.widget.Spinner;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import com.jaredrummler.materialspinner.MaterialSpinner;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -35,8 +37,8 @@ public class SendTransactionActivity extends AppCompatActivity implements UIVali
|
||||||
|
|
||||||
SendTransactionValidator sendTransactionValidator;
|
SendTransactionValidator sendTransactionValidator;
|
||||||
|
|
||||||
/*@BindView(R.id.etFrom)
|
@BindView(R.id.spFrom)
|
||||||
EditText etFrom;*/
|
MaterialSpinner spFrom;
|
||||||
@BindView(R.id.tvFromError)
|
@BindView(R.id.tvFromError)
|
||||||
TextView tvFromError;
|
TextView tvFromError;
|
||||||
@BindView(R.id.etTo)
|
@BindView(R.id.etTo)
|
||||||
|
@ -102,7 +104,7 @@ public class SendTransactionActivity extends AppCompatActivity implements UIVali
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
//sendTransactionValidator = new SendTransactionValidator(this.getApplicationContext(), this.cryptoNetAccount, etFrom, etTo, spAsset, etAmount, etMemo);
|
sendTransactionValidator = new SendTransactionValidator(this.getApplicationContext(), this.cryptoNetAccount, spFrom, etTo, spAsset, etAmount, etMemo);
|
||||||
sendTransactionValidator.setListener(this);
|
sendTransactionValidator.setListener(this);
|
||||||
} else {
|
} else {
|
||||||
this.finish();
|
this.finish();
|
||||||
|
|
|
@ -153,8 +153,8 @@ public class SendTransactionFragment extends DialogFragment implements UIValidat
|
||||||
* this is only for graphene accounts.
|
* this is only for graphene accounts.
|
||||||
*
|
*
|
||||||
**/
|
**/
|
||||||
this.grapheneAccount = new GrapheneAccount(this.cryptoNetAccount);
|
//this.grapheneAccount = new GrapheneAccount(this.cryptoNetAccount);
|
||||||
this.grapheneAccount.loadInfo(db.grapheneAccountInfoDao().getByAccountId(this.cryptoNetAccountId));
|
//this.grapheneAccount.loadInfo(db.grapheneAccountInfoDao().getByAccountId(this.cryptoNetAccountId));
|
||||||
|
|
||||||
final LiveData<List<CryptoCoinBalance>> balancesList = db.cryptoCoinBalanceDao().getBalancesFromAccount(cryptoNetAccountId);
|
final LiveData<List<CryptoCoinBalance>> balancesList = db.cryptoCoinBalanceDao().getBalancesFromAccount(cryptoNetAccountId);
|
||||||
balancesList.observe(this, new Observer<List<CryptoCoinBalance>>() {
|
balancesList.observe(this, new Observer<List<CryptoCoinBalance>>() {
|
||||||
|
@ -185,7 +185,7 @@ public class SendTransactionFragment extends DialogFragment implements UIValidat
|
||||||
* Custom material spinner implementation
|
* Custom material spinner implementation
|
||||||
* */
|
* */
|
||||||
spFrom.setItems(cryptoNetAccounts);
|
spFrom.setItems(cryptoNetAccounts);
|
||||||
spFrom.setSelectedIndex(0);
|
//spFrom.setSelectedIndex(0);
|
||||||
spFrom.setOnItemSelectedListener(new MaterialSpinner.OnItemSelectedListener<CryptoNetAccount>() {
|
spFrom.setOnItemSelectedListener(new MaterialSpinner.OnItemSelectedListener<CryptoNetAccount>() {
|
||||||
@Override
|
@Override
|
||||||
public void onItemSelected(MaterialSpinner view, int position, long id, CryptoNetAccount item) {
|
public void onItemSelected(MaterialSpinner view, int position, long id, CryptoNetAccount item) {
|
||||||
|
|
|
@ -177,7 +177,7 @@ class BitsharesAccountNameValidation : CustomValidationField, UIValidator {
|
||||||
* */
|
* */
|
||||||
creatingAccountMaterialDialog.dismiss()
|
creatingAccountMaterialDialog.dismiss()
|
||||||
|
|
||||||
if (!request.accountExists) {
|
if (request.accountExists) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The account exists and is not valid
|
* The account exists and is not valid
|
||||||
|
|
Loading…
Reference in a new issue