Hide the toolbar when the the ring overlay is displayed

This commit is contained in:
paweldomas 2016-08-01 15:21:23 -05:00
parent ff68caaa16
commit 123b5abb08
2 changed files with 12 additions and 3 deletions

View File

@ -298,7 +298,9 @@ UI.initConference = function () {
UI.updateLocalRole(false);
// Once we've joined the muc show the toolbar
if (!RingOverlay.isDisplayed()) {
ToolbarToggler.showToolbar();
}
let displayName = config.displayJids ? id : Settings.getDisplayName();
@ -1413,14 +1415,12 @@ let bottomToolbarEnabled = null;
UI.showRingOverLay = function () {
RingOverlay.show(APP.tokenData.callee);
ToolbarToggler.setAlwaysVisibleToolbar(true);
FilmStrip.toggleFilmStrip(false);
};
UI.hideRingOverLay = function () {
if (!RingOverlay.hide())
return;
ToolbarToggler.resetAlwaysVisibleToolbar();
FilmStrip.toggleFilmStrip(true);
};

View File

@ -78,5 +78,14 @@ export default {
overlay.destroy();
overlay = null;
return true;
},
/**
* Checks whether or not the ring overlay is currently displayed.
*
* @returns {boolean} true if the ring overlay is currently displayed or
* false otherwise.
*/
isDisplayed () {
return overlay !== null;
}
};