Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.1.5, 2.2.2, 2.3
-
Testing Instructions:
-
Affected Branches:MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
-
Fixed Branches:MOODLE_21_STABLE, MOODLE_22_STABLE
-
Pull from Repository:
-
Pull Master Branch:wip-
MDL-30784-master -
Pull Master Diff URL:
Description
Android tablets are detected as mobile devices not as tablets in themes.
I have attached a patch to lib/moodlelib.php to fix the issue. The change is that the mobile regex needs to search for android and mobile in the user agent not just android.
The user agent for an android mobile device lists (Android version number) /4.0 Mobile Safari/
The user agent for an android tablet device lists (Android version number) / 4.0 Safari/
In the patch I change /android| to /android \. mobile| for the mobile regex and then I added |android to the tablet regex.
This was tested and validated on a iPod OS 5, Galaxy Nexus on Android 4.0.2, a Motorola Xoom on Honeycomb 3.2, a Droid (original) running Android 2.3.6 and an iPad.