瀏覽代碼

Fix null buttons

Guy Carmeli 8 年之前
父節點
當前提交
648fabe6e3
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      src/deprecated/platformSpecificDeprecated.android.js

+ 2
- 2
src/deprecated/platformSpecificDeprecated.android.js 查看文件

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