Instead of defaulting Android devices to embedded UI (phone was assumed) give them...
[bookreader.git] / BookReaderIA / inc / BookReader.inc
index b0c2fe9..e1b6e49 100644 (file)
@@ -472,7 +472,7 @@ class BookReader
   public static function browserFromUserAgent($userAgent) {
       $browserPatterns = array(
           'ipad' => '/iPad/',
-          'iphone' => '/iPhone/', // Also cover iPod Touch
+          'iphone' => '/iPhone/', // Also covers iPod Touch
           'android' => '/Android/',
       );
       
@@ -491,7 +491,7 @@ class BookReader
       $browserParams = array(
           'ipad' => array( 'ui' => 'touch' ),
           'iphone' => array( 'ui' => 'embed', 'mode' => '1up' ),
-          'android' => array( 'ui' => 'embed', 'mode' => '1up' ),
+          'android' => array( ), // Presence of this OS doesn't tell us much about device
       );
   
       $browser = BookReader::browserFromUserAgent($userAgent);