Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Move ZoomButtonController creation to view initalisation #9587

Merged
merged 2 commits into from
Aug 1, 2017

Conversation

tobrun
Copy link
Member

@tobrun tobrun commented Jul 24, 2017

in #9462 we started to make a distinction between view versus map initialization. MapZoomButtonController was created as part of the map initialization while it's actually a view itself. This PR also changes from inheritance to composition.

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Jul 24, 2017
@tobrun tobrun added this to the android-v5.2.0 milestone Jul 24, 2017
@tobrun tobrun self-assigned this Jul 24, 2017
@tobrun tobrun requested a review from Guardiola31337 July 24, 2017 11:40

MapZoomButtonController(@NonNull View ownerView, @NonNull UiSettings uiSettings, @NonNull OnZoomListener listener) {
super(ownerView);
MapZoomButtonController(@NonNull View ownerView) {
Copy link
Contributor

@Guardiola31337 Guardiola31337 Jul 24, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Why not passing ZoomButtonsController instead?

@tobrun tobrun force-pushed the tvn-view-initalisation-mapzoombuttoncontroller branch from 41889d0 to 8175da0 Compare July 25, 2017 07:51
@tobrun tobrun force-pushed the tvn-view-initalisation-mapzoombuttoncontroller branch from 8175da0 to 1b0567d Compare July 25, 2017 12:34
@tobrun
Copy link
Member Author

tobrun commented Jul 25, 2017

done with 1b0567d

Copy link
Contributor

@Guardiola31337 Guardiola31337 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@tobrun tobrun merged commit 11b8f2d into master Aug 1, 2017
@tobrun tobrun deleted the tvn-view-initalisation-mapzoombuttoncontroller branch August 1, 2017 06:54
@Guardiola31337 Guardiola31337 mentioned this pull request Oct 6, 2017
20 tasks
@Guardiola31337 Guardiola31337 mentioned this pull request Oct 19, 2017
20 tasks
@Guardiola31337 Guardiola31337 mentioned this pull request Oct 26, 2017
20 tasks
@tobrun tobrun mentioned this pull request Nov 3, 2017
21 tasks
This was referenced Nov 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants