modify ApiConfig default Bither
MODIFY
bither-android/res/layout/activity_hot_advance_options.xml
bither-android/res/layout/activity_hot_advance_options.xml
<net.bither.ui.base.SettingSelectorView
android:id="@+id/ssv_api_config"
+ android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content" />

MODIFY
bither-android/src/net/bither/activity/hot/HotAdvanceActivity.java
bither-android/src/net/bither/activity/hot/HotAdvanceActivity.java
@@ -1185,7 +1185,7 @@ public class HotAdvanceActivity extends SwipeRightFragmentActivity {
case BLOCKCHAIN_INFO:
return getString(R.string.setting_name_api_config_blockchain);
}
- return getString(R.string.setting_name_api_config_blockchain);
+ return getString(R.string.setting_name_api_config_bither);
}
@Override
@@ -1196,7 +1196,7 @@ public class HotAdvanceActivity extends SwipeRightFragmentActivity {
case BLOCKCHAIN_INFO:
return getString(R.string.setting_api_config_blockchain);
default:
- return getString(R.string.setting_api_config_blockchain);
+ return getString(R.string.setting_api_config_bither_net);
}
}
@@ -1219,7 +1219,7 @@ public class HotAdvanceActivity extends SwipeRightFragmentActivity {
case BLOCKCHAIN_INFO:
return 1;
default:
- return 1;
+ return 0;
}
}
@@ -1237,7 +1237,7 @@ public class HotAdvanceActivity extends SwipeRightFragmentActivity {
return BitherjSettings.ApiConfig.BLOCKCHAIN_INFO;
}
}
- return BitherjSettings.ApiConfig.BLOCKCHAIN_INFO;
+ return BitherjSettings.ApiConfig.BITHER_NET;
}
};

MODIFY
bither-android/src/net/bither/preference/AppSharedPreference.java
bither-android/src/net/bither/preference/AppSharedPreference.java
@@ -149,7 +149,7 @@ public class AppSharedPreference {
// TODO: set api mode
public void setApiConfig(BitherjSettings.ApiConfig mode) {
if (mode == null) {
- mode = BitherjSettings.ApiConfig.BLOCKCHAIN_INFO;
+ mode = BitherjSettings.ApiConfig.BITHER_NET;
}
this.mPreferences.edit().putInt(API_MODE, mode.ordinal()).commit();
}
@@ -159,7 +159,7 @@ public class AppSharedPreference {
if (config < BitherjSettings.ApiConfig.values().length && config >= 0) {
return BitherjSettings.ApiConfig.values()[config];
}
- return BitherjSettings.ApiConfig.BLOCKCHAIN_INFO;
+ return BitherjSettings.ApiConfig.BITHER_NET;
}
public int getVerionCode() {

modify ApiConfig default Bither