diff options
author | Александр Зацепин <az@mapswithme.com> | 2020-02-25 15:39:09 +0300 |
---|---|---|
committer | yoksnod <donskdmitry@mail.ru> | 2020-02-25 16:14:12 +0300 |
commit | b63be773a75378e0c7e2642d2ae9b8d39ca644f9 (patch) | |
tree | 003640777e87af2327fc7c7c7fb021f5a58a4078 /android/src/com/mapswithme/maps/maplayer/MapLayerCompositeController.java | |
parent | d570f61e432df4a9034cfe33447cc60f1296a422 (diff) |
[android] Added updating of current layer field after the layer controllers are sorted.
Diffstat (limited to 'android/src/com/mapswithme/maps/maplayer/MapLayerCompositeController.java')
-rw-r--r-- | android/src/com/mapswithme/maps/maplayer/MapLayerCompositeController.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/android/src/com/mapswithme/maps/maplayer/MapLayerCompositeController.java b/android/src/com/mapswithme/maps/maplayer/MapLayerCompositeController.java index 2f40e17856..d38fe618b7 100644 --- a/android/src/com/mapswithme/maps/maplayer/MapLayerCompositeController.java +++ b/android/src/com/mapswithme/maps/maplayer/MapLayerCompositeController.java @@ -84,6 +84,10 @@ public class MapLayerCompositeController implements MapLayerController return 1; return 0; }); + + // The current layer must be updated after the layer controllers are sorted. + mMasterEntry = getCurrentLayer(); + toggleMode(mMasterEntry.getMode()); } public void toggleMode(@NonNull Mode mode) |