Skip to content

Commit

Permalink
Merge pull request #13 from trongnd/master
Browse files Browse the repository at this point in the history
Fix checking empty region’s major and minor.
  • Loading branch information
MacKentoch authored Mar 16, 2017
2 parents cc720f6 + ee6ecd9 commit fbd3bc7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ public void startMonitoring(String regionId, String beaconUuid, int minor, int m
Region region = createRegion(
regionId,
beaconUuid,
String.valueOf(minor) != "-1" ? String.valueOf(minor) : "",
String.valueOf(major) != "-1" ? String.valueOf(major) : ""
String.valueOf(minor).equals("-1") ? "" : String.valueOf(minor),
String.valueOf(major).equals("-1") ? "" : String.valueOf(major)
);
mBeaconManager.startMonitoringBeaconsInRegion(region);
resolve.invoke();
Expand Down Expand Up @@ -214,8 +214,8 @@ public void stopMonitoring(String regionId, String beaconUuid, int minor, int ma
Region region = createRegion(
regionId,
beaconUuid,
String.valueOf(minor) != "-1" ? String.valueOf(minor) : "",
String.valueOf(major) != "-1" ? String.valueOf(major) : ""
String.valueOf(minor).equals("-1") ? "" : String.valueOf(minor),
String.valueOf(major).equals("-1") ? "" : String.valueOf(major)
// minor,
// major
);
Expand Down

0 comments on commit fbd3bc7

Please sign in to comment.