forked from organicmaps/organicmaps
[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:
parent
7ed349b4ac
commit
62d2ce8df1
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue