修复一处空指针错误
提交图片优化版本:直播间滑动3分钟,内存占用:3G → 1.5G
This commit is contained in:
parent
7f423a9ae2
commit
7033f5e707
@ -272,8 +272,9 @@ public class ImgLoader {
|
|||||||
@Override
|
@Override
|
||||||
public void onLoadFailed(@Nullable Drawable errorDrawable) {
|
public void onLoadFailed(@Nullable Drawable errorDrawable) {
|
||||||
super.onLoadFailed(errorDrawable);
|
super.onLoadFailed(errorDrawable);
|
||||||
if (callback != null)
|
if (callback != null) {
|
||||||
callback.onLoadFailed();
|
callback.onLoadFailed();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -302,7 +303,9 @@ public class ImgLoader {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onLoadCleared(@Nullable Drawable placeholder) {
|
public void onLoadCleared(@Nullable Drawable placeholder) {
|
||||||
|
if (callback != null) {
|
||||||
|
callback.onLoadFailed();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -158,8 +158,8 @@ public class VersionUtil {
|
|||||||
} else {
|
} else {
|
||||||
ToastUtil.show(R.string.version_download_url_error);
|
ToastUtil.show(R.string.version_download_url_error);
|
||||||
}
|
}
|
||||||
} else if (CommonAppConfig.IS_GOOGLE_PLAY == true) {
|
} else if (CommonAppConfig.IS_GOOGLE_PLAY) {
|
||||||
if (configBean.getGoogle_isup().equals("0")) {
|
if (configBean.getGoogle_isup() != null && configBean.getGoogle_isup().equals("0")) {
|
||||||
Log.e("tagg", "111111");
|
Log.e("tagg", "111111");
|
||||||
DialogUitl.Builder builder = new DialogUitl.Builder(context);
|
DialogUitl.Builder builder = new DialogUitl.Builder(context);
|
||||||
builder.setTitle(WordUtil.getString(R.string.version_update))
|
builder.setTitle(WordUtil.getString(R.string.version_update))
|
||||||
|
@ -10,9 +10,9 @@ ext {
|
|||||||
manifestPlaceholders = [
|
manifestPlaceholders = [
|
||||||
//正式
|
//正式
|
||||||
|
|
||||||
// serverHost : "https://napi.yaoulive.com",
|
serverHost : "https://napi.yaoulive.com",
|
||||||
//測試
|
//測試
|
||||||
serverHost : "https://ceshi.yaoulive.com",
|
// serverHost : "https://ceshi.yaoulive.com",
|
||||||
|
|
||||||
//腾讯地图
|
//腾讯地图
|
||||||
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",
|
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",
|
||||||
|
Loading…
Reference in New Issue
Block a user