2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

UX: Disable toolbar by default on Android devices.

This commit is contained in:
Guo Xiang Tan 2016-06-27 15:06:13 +08:00
parent 3ad1423c53
commit 994063ac72
No known key found for this signature in database
GPG key ID: 19C321C8952B0F72

View file

@ -70,7 +70,7 @@ export default Ember.Controller.extend({
// iPhone 6 is 375, anything narrower and toolbar should
// be default disabled.
// That said we should remember the state
this._toolbarEnabled = $(window).width() > 370;
this._toolbarEnabled = $(window).width() > 370 && !this.capabilities.isAndroid;
}
return this._toolbarEnabled || storedVal === "true";
},