升级优化
This commit is contained in:
parent
c3a3a5cfe6
commit
35c37fdf51
@ -1,6 +1,9 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.ui.alert;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.Build;
|
||||
import android.provider.Settings;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
@ -55,6 +58,7 @@ public class UpAppAlert extends CenterPopupView {
|
||||
protected int getImplLayoutId() {
|
||||
return R.layout.alert_up_app;
|
||||
}
|
||||
|
||||
public UpAppAlert(@NonNull @NotNull Context context) {
|
||||
super(context);
|
||||
|
||||
@ -88,9 +92,9 @@ public class UpAppAlert extends CenterPopupView {
|
||||
System.exit(1);
|
||||
});
|
||||
tv_confirm.setOnClickListener(v -> {
|
||||
new AppUpdater.Builder()
|
||||
new AppUpdater.Builder(con)
|
||||
.setUrl(url)
|
||||
.build(con)
|
||||
.build()
|
||||
.setUpdateCallback(new AppUpdateCallback() {
|
||||
@Override
|
||||
public void onStart(String url) {
|
||||
@ -98,6 +102,7 @@ public class UpAppAlert extends CenterPopupView {
|
||||
tv_confirm.setVisibility(GONE);
|
||||
up_div.setVisibility(VISIBLE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onProgress(long progress, long total, boolean isChange) {
|
||||
// Log.e("progress",progress+"");
|
||||
|
@ -7,7 +7,6 @@ import android.graphics.Outline;
|
||||
import android.location.Location;
|
||||
import android.os.Bundle;
|
||||
import android.os.Message;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
import android.view.Gravity;
|
||||
import android.view.LayoutInflater;
|
||||
@ -545,7 +544,6 @@ public class HomeFragment extends BaseFragment {
|
||||
ur.getImage(1);
|
||||
|
||||
|
||||
|
||||
if (UiAuxiliary.isLogin(con)) {
|
||||
ur.User();
|
||||
ur.getDriverExpire();
|
||||
|
Loading…
Reference in New Issue
Block a user