forked from organicmaps/organicmaps-tmp
[android] Fixed crash when switching between Downloader/Map activities
This commit is contained in:
parent
11e5301312
commit
d8d626dda4
3 changed files with 4 additions and 3 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue