i have below code and cant check if condition … how can i solve it ?
@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);
}
remove
;end of the first if conditionit should be
if (null != pDialog && pDialog.isShowing());<<< Remove;