when switch to another fragment before completing the post execute the app gets crashed ,and show this error
问题 class GetDashboardContentsAysnc extends AsyncTask { @Override protected void onPreExecute() { super.onPreExecute(); shimmerFrameLayout.startShimmer(); } @Override protected void onPostExecute(String s) { super.onPostExecute(s); shimmerFrameLayout.stopShimmer(); shimmerFrameLayout.setVisibility(View.GONE); if(s!=null ) { try { JSONObject jsonObj = new JSONObject(s); response = jsonObj.getString("response"); if (response.contains("success")) { listcategories.clear(); JSONArray jsonArr = jsonObj