Fix support for 1.6 (4), fixes #414

This commit is contained in:
Daniel Martí 2014-01-01 14:52:14 +01:00
parent b31d8cb55b
commit 219443b5a7

View File

@ -272,10 +272,10 @@ public class FDroid extends FragmentActivity {
if ((resultCode & PreferencesActivity.RESULT_RESTART) != 0) {
((FDroidApp) getApplication()).reloadTheme();
final Intent intent = getIntent();
overridePendingTransition(0, 0);
if (Build.VERSION.SDK_INT >= 5) overridePendingTransition(0, 0);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
finish();
overridePendingTransition(0, 0);
if (Build.VERSION.SDK_INT >= 5) overridePendingTransition(0, 0);
startActivity(intent);
}