Procházet zdrojové kódy

Slightly more backwards compatibility in android leftButtons

Yedidya Kennard před 8 roky
rodič
revize
62d61f0d6a
1 změnil soubory, kde provedl 5 přidání a 2 odebrání
  1. 5
    2
      src/deprecated/platformSpecificDeprecated.android.js

+ 5
- 2
src/deprecated/platformSpecificDeprecated.android.js Zobrazit soubor

386
     return screen.navigatorButtons.leftButtons[0];
386
     return screen.navigatorButtons.leftButtons[0];
387
   }
387
   }
388
 
388
 
389
-
390
   if (screen.leftButtons) {
389
   if (screen.leftButtons) {
391
-    return screen.leftButtons[0];
390
+    if (_.isArray(screen.leftButtons)) {
391
+      return screen.leftButtons[0];
392
+    } else {
393
+      return screen.leftButtons;
394
+    }
392
   }
395
   }
393
 
396
 
394
   return null;
397
   return null;