public InboxAdapter(Context context, ArrayList<InboxModel> mSecitonlist) {
    this.items = mSecitonlist;
    mContext = context;
    display = mContext.getResources().getDisplayMetrics();
    width = display.widthPixels;
    num = -1;

    globalVariable = new GlobalVariable();
    preferences = Utilities.getSharedPreferences(context);

    setHasStableIds(true);
  }
    @Override
    protected void onPostExecute(String result) {
      hideProgress();
      if (resultCode == 0) {
        finishActivity();
      } else if (resultCode == 1) {
        Utilities.showToast(mContext, responseDesc);
      }

      this.cancel(true);
      super.onPostExecute(result);
    }