版本更改

This commit is contained in:
18401019693 2022-09-08 13:49:26 +08:00
parent 9fe02946ef
commit b515e9eea2

View File

@ -6,6 +6,7 @@ import android.content.Intent;
import android.content.pm.PackageInfo; import android.content.pm.PackageInfo;
import android.content.pm.PackageManager; import android.content.pm.PackageManager;
import android.net.Uri; import android.net.Uri;
import android.os.Handler;
import android.text.TextUtils; import android.text.TextUtils;
import com.yunbao.common.CommonAppConfig; import com.yunbao.common.CommonAppConfig;
@ -108,7 +109,9 @@ public class VersionUtil {
UpdateConfig updateConfig = new UpdateConfig(); UpdateConfig updateConfig = new UpdateConfig();
updateConfig.setShowNotification(true); updateConfig.setShowNotification(true);
updateConfig.setAlwaysShowDownLoadDialog(true); updateConfig.setAlwaysShowDownLoadDialog(true);
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
//UI //UI
UiConfig uiConfig = new UiConfig(); UiConfig uiConfig = new UiConfig();
uiConfig.setUiType(UiType.PLENTIFUL); uiConfig.setUiType(UiType.PLENTIFUL);
@ -120,6 +123,9 @@ public class VersionUtil {
.updateTitle("新版本更新") .updateTitle("新版本更新")
.updateContent(configBean.getUpdateDes()) .updateContent(configBean.getUpdateDes())
.update(); .update();
}
},2000);
} catch (Exception e) { } catch (Exception e) {
ToastUtil.show(R.string.version_download_url_error); ToastUtil.show(R.string.version_download_url_error);