|
|
|
@ -32,6 +32,7 @@ import com.hjq.permissions.XXPermissions; |
|
|
|
|
import com.lxj.xpopup.XPopup; |
|
|
|
|
import com.unionmed.unionmedtv.R; |
|
|
|
|
import com.unionmed.unionmedtv.api.VersionUpLoadApi; |
|
|
|
|
import com.unionmed.unionmedtv.application.MyApplication; |
|
|
|
|
import com.unionmed.unionmedtv.base.BaseActivity; |
|
|
|
|
import com.unionmed.unionmedtv.dialog.TipDialog; |
|
|
|
|
import com.unionmed.unionmedtv.fragment.MyDoctorFragment; |
|
|
|
@ -95,6 +96,9 @@ public class HomeActivity extends BaseActivity implements View.OnFocusChangeList |
|
|
|
|
if (versionInfo.isRequestSucceed()) { |
|
|
|
|
if (versionInfo.getData().isInnerRequestSucceed()) { |
|
|
|
|
VersionUpLoadApi.VersionInfoBean versionInfoBean = versionInfo.getData().getData().getVersionInfo(); |
|
|
|
|
if(versionInfoBean==null){ |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (versionInfoBean.getIfNeedUpdate().equals("1")) { |
|
|
|
|
// 更新配置
|
|
|
|
|
UpdateConfig updateConfig = new UpdateConfig(); |
|
|
|
@ -348,7 +352,7 @@ public class HomeActivity extends BaseActivity implements View.OnFocusChangeList |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void confirm() { |
|
|
|
|
finish(); |
|
|
|
|
MyApplication.getInstance().remoAllActivity(); |
|
|
|
|
System.exit(0); |
|
|
|
|
} |
|
|
|
|
})).show(); |
|
|
|
|