From e4129fe1b4d4be4a7759ddca998ace4016108fbb Mon Sep 17 00:00:00 2001 From: Andrei Coman Date: Fri, 30 Sep 2016 03:09:29 -0700 Subject: [PATCH] Modal statusbar cleanup Summary: @public The hack for the status bar height is not necessary any longer, so we can remove all code related to it Reviewed By: lexs Differential Revision: D3943770 --- .../java/com/facebook/react/flat/FlatUIImplementation.java | 2 +- .../java/com/facebook/react/flat/RCTModalHostManager.java | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatUIImplementation.java b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatUIImplementation.java index 5363a3128..dffe1f4a9 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/FlatUIImplementation.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/FlatUIImplementation.java @@ -61,7 +61,7 @@ public class FlatUIImplementation extends UIImplementation { viewManagers.add(new RCTTextInputManager()); viewManagers.add(new RCTViewPagerManager()); viewManagers.add(new FlatARTSurfaceViewManager()); - viewManagers.add(new RCTModalHostManager(reactContext)); + viewManagers.add(new RCTModalHostManager()); ViewManagerRegistry viewManagerRegistry = new ViewManagerRegistry(viewManagers); FlatNativeViewHierarchyManager nativeViewHierarchyManager = new FlatNativeViewHierarchyManager( diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTModalHostManager.java b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTModalHostManager.java index d7420bc98..fee57feb5 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTModalHostManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTModalHostManager.java @@ -9,16 +9,11 @@ package com.facebook.react.flat; -import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.uimanager.LayoutShadowNode; import com.facebook.react.views.modal.ReactModalHostManager; /* package */ class RCTModalHostManager extends ReactModalHostManager { - /* package */ RCTModalHostManager(ReactApplicationContext context) { - super(context); - } - @Override public LayoutShadowNode createShadowNodeInstance() { return new FlatReactModalShadowNode();