From 79d63e0e3d5d969b97ab6a76995070186509420d Mon Sep 17 00:00:00 2001 From: Alexander Marchuk Date: Tue, 5 Apr 2016 14:23:40 +0300 Subject: [PATCH] [android] fix: Possible fix in MigrationController. --- .../maps/downloader/MigrationFragment.java | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/android/src/com/mapswithme/maps/downloader/MigrationFragment.java b/android/src/com/mapswithme/maps/downloader/MigrationFragment.java index 3cde2c0988..b85a4c8ec8 100644 --- a/android/src/com/mapswithme/maps/downloader/MigrationFragment.java +++ b/android/src/com/mapswithme/maps/downloader/MigrationFragment.java @@ -128,18 +128,9 @@ public class MigrationFragment extends BaseMwmFragment } }); - MigrationController.get().attach(this); - Statistics.INSTANCE.trackEvent(Statistics.EventName.DOWNLOADER_MIGRATION_DIALOG_SEEN); } - @Override - public void onDestroyView() - { - super.onDestroyView(); - MigrationController.get().detach(); - } - @Override public void onResume() { @@ -147,6 +138,20 @@ public class MigrationFragment extends BaseMwmFragment MigrationController.get().restore(); } + @Override + public void onStart() + { + super.onStart(); + MigrationController.get().attach(this); + } + + @Override + public void onStop() + { + super.onStop(); + MigrationController.get().detach(); + } + @Override public void setReadyState() {