feat(ripple): only enable ripple on android 5 or greater

This commit is contained in:
Adam Bradley
2015-11-19 11:41:51 -06:00
parent 00f9611e71
commit ea955c59af
2 changed files with 13 additions and 0 deletions

View File

@@ -110,6 +110,16 @@ export class Platform {
return this._versions;
}
version() {
for (let platformName in this._versions) {
if (this._versions[platformName]) {
return this._versions[platformName];
}
}
return {};
}
/**
* @returns {promise}
* @description

View File

@@ -47,6 +47,9 @@ Platform.register({
'tablet'
],
settings: {
activator: function(p) {
return (p.version().major >= 5) ? 'ripple' : 'none';
},
hoverCSS: false,
keyboardHeight: 300,
mode: 'md',