@Override
 protected void onPostCreate(Bundle savedInstanceState) {
   super.onPostCreate(savedInstanceState);
   mSwipeBackLayout.attachToActivity(this);
 }
 public void onPostCreate() {
   mSwipeBackLayout.attachToActivity(mActivity);
 }