Browse Source

Fix null buttons

Guy Carmeli 8 years ago
parent
commit
648fabe6e3
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/deprecated/platformSpecificDeprecated.android.js

+ 2
- 2
src/deprecated/platformSpecificDeprecated.android.js View File

290
 }
290
 }
291
 
291
 
292
 function getLeftButton(screen) {
292
 function getLeftButton(screen) {
293
-  if (screen.navigatorButtons) {
293
+  if (screen.navigatorButtons && screen.navigatorButtons.leftButton) {
294
     return screen.navigatorButtons.leftButton;
294
     return screen.navigatorButtons.leftButton;
295
   }
295
   }
296
 
296
 
298
 }
298
 }
299
 
299
 
300
 function getRightButtons(screen) {
300
 function getRightButtons(screen) {
301
-  if (screen.navigatorButtons) {
301
+  if (screen.navigatorButtons && screen.navigatorButtons.rightButtons) {
302
     return screen.navigatorButtons.rightButtons;
302
     return screen.navigatorButtons.rightButtons;
303
   }
303
   }
304
 
304