Commit dbbce67b by sikang

bug修复

parent 152a71f0
......@@ -128,6 +128,7 @@ public abstract class BaseActivity extends AppCompatActivity implements IView {
@Override
protected void onStop() {
super.onStop();
progressDialog.setEnable(false);
lifecycleSubject.onNext(ActivityEvent.STOP);
}
......@@ -171,7 +172,12 @@ public abstract class BaseActivity extends AppCompatActivity implements IView {
if (isShowLoading && !progressDialog.isShowing()) {
//500ms后如果还没有收到返回数据,显示loading
progressDialog.setEnable(true);
rootLayout.postDelayed(() -> progressDialog.showLoading(), 500);
rootLayout.postDelayed(new Runnable() {
@Override
public void run() {
progressDialog.showLoading();
}
}, 500);
}
}
......
package tech.starwin.widget;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.support.annotation.NonNull;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment