Ejemplo n.º 1
0
 @Override
 protected void onStop() {
   super.onStop();
   switch (activeContentType) {
     case ABOUT:
       break;
     case MESSAGE_CENTER:
       ApptentiveMessageCenter.onStop(this);
       break;
     case INTERACTION:
       if (activityContent != null) {
         activityContent.onStop();
       }
       break;
     default:
       break;
   }
 }
Ejemplo n.º 2
0
 @Override
 public void onBackPressed() {
   switch (activeContentType) {
     case ABOUT:
       AboutModule.getInstance().onBackPressed(this);
       break;
     case MESSAGE_CENTER:
       ApptentiveMessageCenter.onBackPressed(this);
       break;
     case INTERACTION:
       if (activityContent != null) {
         activityContent.onBackPressed(this);
       }
       break;
     default:
       break;
   }
   finish();
   overridePendingTransition(0, R.anim.slide_down_out);
   super.onBackPressed();
 }