1. Put LensBar::getActiveLensId() public
2. Use the previous method to get the current lens id from dash/DashView.cpp:OnActivateRequest
3. If the dash if visible && the event is of type NOT_HANDLED && the new lens id is != the current lens id : switch to the lens instead of closing the dash, otherwise close the dash.
What I suggest:
1. Put LensBar: :getActiveLensI d() public cpp:OnActivateR equest
2. Use the previous method to get the current lens id from dash/DashView.
3. If the dash if visible && the event is of type NOT_HANDLED && the new lens id is != the current lens id : switch to the lens instead of closing the dash, otherwise close the dash.