(origFontScale: number)
| 1268 | export const AndroidApplication = undefined; |
| 1269 | |
| 1270 | function fontScaleChanged(origFontScale: number) { |
| 1271 | const oldValue = getFontScale(); |
| 1272 | setFontScale(getClosestValidFontScale(origFontScale)); |
| 1273 | const currentFontScale = getFontScale(); |
| 1274 | |
| 1275 | if (oldValue !== currentFontScale) { |
| 1276 | Application.notify({ |
| 1277 | eventName: Application.fontScaleChangedEvent, |
| 1278 | object: Application, |
| 1279 | newValue: currentFontScale, |
| 1280 | }); |
| 1281 | } |
| 1282 | } |
| 1283 | |
| 1284 | export function getCurrentFontScale(): number { |
| 1285 | setupConfigListener(); |
no test coverage detected