[android] Fixed crash when switching between Downloader/Map activities

This commit is contained in:
Alex Zolotarev 2012-04-20 21:41:17 +03:00 committed by Alex Zolotarev
parent 11e5301312
commit d8d626dda4
3 changed files with 4 additions and 3 deletions

View file

@ -43,7 +43,8 @@
</activity>
<activity android:name="com.mapswithme.maps.DownloadUI"
android:label="@string/download_maps"
android:screenOrientation="behind">
android:screenOrientation="behind"
android:noHistory="true">
</activity>
</application>
</manifest>

View file

@ -126,7 +126,7 @@ public class CopyResourcesActivity extends Activity
// Continue with Main UI initialization (MWMActivity)
Intent mwmActivityIntent = new Intent(this, MWMActivity.class);
// Disable animation because MWMActivity should appear exactly over this one
mwmActivityIntent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
mwmActivityIntent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION | Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
startActivity(mwmActivityIntent);
}
else

View file

@ -287,7 +287,7 @@ public class DownloadUI extends PreferenceActivity
{
Intent mwmActivityIntent = new Intent(this, MWMActivity.class);
// Disable animation because MWMActivity should appear exactly over this one
mwmActivityIntent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
mwmActivityIntent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION | Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
startActivity(mwmActivityIntent);
}
}