Permalink
Browse files

MDL-38347 - Calendar - Fixing arrow output on Android devices

  • Loading branch information...
1 parent 405a607 commit df7662560becc51f06d50d48f77f37faa681e104 @jsnfwlr jsnfwlr committed with Sam Hemelryk May 28, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/outputlib.php
View
@@ -533,7 +533,10 @@ private function check_theme_arrows() {
$this->rarrow = '▶';
$this->larrow = '◀';
}
- elseif (false !== strpos($uagent, 'Konqueror')) {
+ elseif ((false !== strpos($uagent, 'Konqueror'))
+ || (false !== strpos($uagent, 'Android'))) {
+ // The fonts on Android don't include the characters required for this to work as expected.
+ // So we use the same ones Konqueror uses.
$this->rarrow = '→';
$this->larrow = '←';
}

0 comments on commit df76625

Please sign in to comment.