Fix exchange type not being processed properly
This commit is contained in:
parent
8778290135
commit
b7d10011ef
@ -80,6 +80,7 @@ public class AddExchangeActivity extends AppCompatActivity {
|
|||||||
private void loadLayoutFor(int exchangeType)
|
private void loadLayoutFor(int exchangeType)
|
||||||
{
|
{
|
||||||
setupExchangeLayout.removeAllViews();
|
setupExchangeLayout.removeAllViews();
|
||||||
|
exchangeSpinner.setSelection(exchangeType);
|
||||||
|
|
||||||
switch (exchangeType)
|
switch (exchangeType)
|
||||||
{
|
{
|
||||||
|
@ -443,7 +443,7 @@ public class DatabaseManager extends SQLiteOpenHelper{
|
|||||||
|
|
||||||
public List<HitBtcManager> getHitBtcAccounts(Context context)
|
public List<HitBtcManager> getHitBtcAccounts(Context context)
|
||||||
{
|
{
|
||||||
String searchQuerry = "SELECT * FROM " + TABLE_EXCHANGE_KEYS + " WHERE " + KEY_EXCHANGE_TYPE + "='" + HITBTC_TYPE + "' AND " + KEY_EXCHANGE_IS_ENABLED + " = '1'";
|
String searchQuerry = "SELECT * FROM " + TABLE_EXCHANGE_KEYS + " WHERE " + KEY_EXCHANGE_TYPE + " = " + HITBTC_TYPE + " AND " + KEY_EXCHANGE_IS_ENABLED + " = '1'";
|
||||||
SQLiteDatabase db = this.getWritableDatabase();
|
SQLiteDatabase db = this.getWritableDatabase();
|
||||||
Cursor resultList = db.rawQuery(searchQuerry, null);
|
Cursor resultList = db.rawQuery(searchQuerry, null);
|
||||||
|
|
||||||
@ -466,7 +466,7 @@ public class DatabaseManager extends SQLiteOpenHelper{
|
|||||||
|
|
||||||
public List<BinanceManager> getBinanceAccounts()
|
public List<BinanceManager> getBinanceAccounts()
|
||||||
{
|
{
|
||||||
String searchQuerry = "SELECT * FROM " + TABLE_EXCHANGE_KEYS + " WHERE " + KEY_EXCHANGE_TYPE + "='" + BINANCE_TYPE + "' AND " + KEY_EXCHANGE_IS_ENABLED + " = '1'";
|
String searchQuerry = "SELECT * FROM " + TABLE_EXCHANGE_KEYS + " WHERE " + KEY_EXCHANGE_TYPE + " = " + BINANCE_TYPE + " AND " + KEY_EXCHANGE_IS_ENABLED + " = '1'";
|
||||||
SQLiteDatabase db = this.getWritableDatabase();
|
SQLiteDatabase db = this.getWritableDatabase();
|
||||||
Cursor resultList = db.rawQuery(searchQuerry, null);
|
Cursor resultList = db.rawQuery(searchQuerry, null);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user