|
@@ -285,15 +285,23 @@ class CallingbedActivationActivity : BaseActivity<CallingbedActivationPresenter
|
|
|
}
|
|
|
|
|
|
private fun showUI(){
|
|
|
- if (BuildConfig.is_mom.toBoolean()){
|
|
|
+ if (BuildConfig.yanglao.toBoolean()){
|
|
|
+ activation_img.setBackgroundResource(R.mipmap.activation_p_mom_bg)
|
|
|
+ activation_network_button.setBackgroundResource(R.drawable.shape_main_bt_mom_bg)
|
|
|
+ activation_settings_button.setBackgroundResource(R.drawable.shape_main_bt_mom_bg)
|
|
|
+ activation_system_button.setBackgroundResource(R.drawable.shape_main_bt_mom_bg)
|
|
|
+ activation_services_button.setBackgroundResource(R.drawable.shape_main_bt_mom_bg)
|
|
|
+ } else if (BuildConfig.is_mom.toBoolean()){
|
|
|
SettingConfig.setScene(activity, 1)
|
|
|
activation_img.setBackgroundResource(R.mipmap.activation_p_mom_bg)
|
|
|
+ activation_network_button.setBackgroundResource(R.drawable.shape_main_bt_mom_bg)
|
|
|
activation_settings_button.setBackgroundResource(R.drawable.shape_main_bt_mom_bg)
|
|
|
activation_system_button.setBackgroundResource(R.drawable.shape_main_bt_mom_bg)
|
|
|
activation_services_button.setBackgroundResource(R.drawable.shape_main_bt_mom_bg)
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
SettingConfig.setScene(activity, 0)
|
|
|
}
|
|
|
+
|
|
|
val isActivation = SPUtils.get(this, Constant.APP_ACTIVATION, "");
|
|
|
if (isActivation.equals("Activated")){
|
|
|
activation_title.setText(R.string.connect_server_failed)
|