Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
evanjmg committed Feb 23, 2018
1 parent 9f2efd8 commit 84edb10
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@
public class RNHomePressedModule extends ReactContextBaseJavaModule {

private final ReactApplicationContext reactContext;

private static final String PRESSED_ERROR = 'PRESSED_ERROR'
public RNHomePressedModule(ReactApplicationContext reactContext) {
super(reactContext);
this.reactContext = reactContext;
}

public static final String ON_HOME_BUTTON_PRESSED = "ON_HOME_BUTTON_PRESSED";

public void onHomePressed() {
Expand All @@ -24,7 +23,7 @@ public void onHomePressed() {
.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
.emit(ON_HOME_BUTTON_PRESSED);
} catch (Exception e) {
Log.e("sendEvent called before bundle loaded");
Log.e(PRESSED_ERROR, "sendEvent called before bundle loaded");
}
}
@Override
Expand Down

0 comments on commit 84edb10

Please sign in to comment.