@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_section);
    ButterKnife.bind(this);
    overridePendingTransition(R.anim.slide_in_from_end, R.anim.slide_out_to_start);
    hideSoftKeypad();
    isScreenEmpty = true;
    firstLoad = true;

    mCourse = (Course) (getIntent().getExtras().get(AppConstants.KEY_COURSE_BUNDLE));

    mSwipeRefreshLayout.setOnRefreshListener(this);
    mSwipeRefreshLayout.setColorSchemeResources(
        R.color.stepic_brand_primary, R.color.stepic_orange_carrot, R.color.stepic_blue_ribbon);

    setSupportActionBar(mToolbar);
    getSupportActionBar().setDisplayHomeAsUpEnabled(true);

    mSectionsRecyclerView.setLayoutManager(new LinearLayoutManager(this));
    mSectionList = new ArrayList<>();
    mAdapter = new SectionAdapter(mSectionList, this, this);
    mSectionsRecyclerView.setAdapter(mAdapter);

    ProgressHelper.activate(mProgressBar);
    bus.register(this);
    getAndShowSectionsFromCache();
  }
 @Override
 protected void onStop() {
   super.onStop();
   ProgressHelper.dismiss(mSwipeRefreshLayout);
 }
 @Override
 protected void onDestroy() {
   bus.unregister(this);
   super.onDestroy();
 }
 @Override
 public void finish() {
   super.finish();
   overridePendingTransition(R.anim.slide_in_from_start, R.anim.slide_out_to_end);
 }