我有下面的代码,不能检查是否有条件......我怎么解决?
@Override
protected void onPostExecute(Void result) {
if (null != pDialog && pDialog.isShowing()); {
pDialog.dismiss();
}
if (null == arrayList || arrayList.size() == 0) {
showToast("No data found from web!!!");
MainActivity.this.finish();
} else {
Collections.sort(arrayList);
setAdapterToListview(arrayList);
}
super.onPostExecute(result);
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
121 次 |
| 最近记录: |