[android] Prevent MwmActivity to be launched twice

A second copy of MwmActivity was launched in certain cases.

Closes #4240

Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
This commit is contained in:
Roman Tsisyk 2023-02-08 09:13:46 +02:00
parent 7ed349b4ac
commit 62d2ce8df1

View file

@ -347,7 +347,7 @@ public class DownloadResourcesLegacyActivity extends BaseMwmFragmentActivity
final Intent intent = new Intent(this, MwmActivity.class);
// Disable animation because MwmActivity should appear exactly over this one
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION | Intent.FLAG_ACTIVITY_CLEAR_TOP);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION | Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);
// Add saved task to forward to map activity.
if (mMapTaskToForward != null)