Skip to content
This repository has been archived by the owner on May 2, 2020. It is now read-only.

Commit

Permalink
fixes #526 - Material icons not shown in Android 4
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptPilot authored and scriptPilot committed May 17, 2017
1 parent 9524898 commit 2751772
Show file tree
Hide file tree
Showing 28 changed files with 2,069 additions and 1,121 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

## Next version

### Bug-fixes

- [x] [#526 - Material icons not shown in Android 4](https://github.com/scriptPilot/app-framework/issues/526)

### Improvements

- [x] [#539 - Create script to update Material Icons fonts automatically](https://github.com/scriptPilot/app-framework/issues/539)
Expand Down
1 change: 1 addition & 0 deletions DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ The check boxes indicate articles which are already reworked.
- [x] [Global data object](docs/data-object.md)
- [x] [sortObject function](docs/sort-object.md)
- [x] [Images](docs/images.md)
- [ ] [Icon fonts](docs/icon-fonts.md)
- [ ] [Modules and scripts](docs/modules-and-scripts.md)
- [ ] [Cordova plugins](docs/cordova-plugins.md)
- [ ] [Firebase backend](docs/firebase.md)
Expand Down
9 changes: 9 additions & 0 deletions client/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,9 @@ mixins.checkNPMupdates = {
}
}
mixins.initWorkarounds = {
data: {
materialCodepoints: null
},
beforeCreate: function () {
require('./workarounds.css')
// Actions not show/hide properly
Expand All @@ -375,6 +378,12 @@ mixins.initWorkarounds = {
window.Dom7(document).on('page:init', (e) => {
window.Dom7(e.target).find('.login-screen.modal-out').hide()
})
},
created: function () {
// Materical Icons not shown in older browsers / android versions
if (process.env.FONT_MATERIAL) {
this.materialCodepoints = require('./material-codepoints.json')
}
}
}
mixins.manageGlobalDataObject = {
Expand Down
Loading

0 comments on commit 2751772

Please sign in to comment.