[android] fix DoubleMapActivity main map not interactive after rotation

This commit is contained in:
Łukasz Paczos
2019-05-15 15:01:09 +02:00
committed by Łukasz Paczos
parent 3843bf472d
commit eb4a6ae7a2

View File

@@ -152,7 +152,9 @@ public class DoubleMapActivity extends AppCompatActivity {
public void onSaveInstanceState(@NonNull Bundle outState) {
super.onSaveInstanceState(outState);
mapView.onSaveInstanceState(outState);
mapViewMini.onSaveInstanceState(outState);
// Mini map view is not interactive in this case, so we shouldn't save the instance.
// If we'd like to support state saving for both maps, they'd have to be kept in separate fragments.
//mapViewMini.onSaveInstanceState(outState);
}
}
}