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); }
protected void closeActivity() { if (closeOnFinish) { ((AbstractActivity) fromActivity).finish(); } }