Bug 853986 - Remove dynamic toolbar margins in fullscreen. r=cwiiis

This commit is contained in:
Wes Johnston 2013-07-11 09:21:25 -07:00
parent 50841552c2
commit 3fe2ee6075

View File

@ -1587,10 +1587,19 @@ abstract public class BrowserApp extends GeckoApp
ThreadUtils.postToUiThread(new Runnable() {
@Override
public void run() {
if (fullscreen)
if (fullscreen) {
mBrowserToolbar.hide();
else
if (isDynamicToolbarEnabled()) {
mLayerView.getLayerMarginsAnimator().hideMargins(true);
mLayerView.getLayerMarginsAnimator().setMaxMargins(0, 0, 0, 0);
}
} else {
mBrowserToolbar.show();
if (isDynamicToolbarEnabled()) {
mLayerView.getLayerMarginsAnimator().showMargins(true);
mLayerView.getLayerMarginsAnimator().setMaxMargins(0, mToolbarHeight, 0, 0);
}
}
}
});
}