Ejemplo n.º 1
0
 public static void restartActivity(AbstractActivity activity) {
   final Intent intent = activity.getIntent();
   if (isLevel5) {
     overridePendingTransition(activity, 0, 0);
     intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
   }
   activity.finish();
   if (isLevel5) {
     overridePendingTransition(activity, 0, 0);
   }
   activity.startActivity(intent);
 }
Ejemplo n.º 2
0
 protected void closeActivity() {
   if (closeOnFinish) {
     ((AbstractActivity) fromActivity).finish();
   }
 }