mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 14:15:30 +00:00
Bug 853986 - Remove dynamic toolbar margins in fullscreen. r=cwiiis
This commit is contained in:
parent
50841552c2
commit
3fe2ee6075
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user