 viewPagerAdapter = new ViewPagerAdapter(getActivity().getApplicationContext(), list, balance_list, periods_list);         viewPager.setAdapter(viewPagerAdapter);         viewPager.setCurrentItem(MainActivity.addedDate);          return view;     }      @Override     public void onResume() {         super.onResume();         