forked from organicmaps/organicmaps
[android] fix: Possible fix in MigrationController.
This commit is contained in:
parent
8a0c4803d2
commit
79d63e0e3d
1 changed files with 14 additions and 9 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue