private static void mockLocationOff() { ManageLocationUpdates.traceLocUpdates("Mock locations off."); Tracer.setFlag(CpControl.MOCKLOCATION_FLAG, false); DirectionInfo.i().setLocation(null); LocationUtils.setLocationLed(); LocationUtils.setBearingLed(); }
@SuppressWarnings("UnusedParameters") private static void mockLocationOn(View topView, MockLoc _mockLocation) { mockLocation = _mockLocation; ManageLocationUpdates.traceLocUpdates( String.format("Mock locations on: %s.", mockLocation.toString())); Tracer.setFlag(CpControl.MOCKLOCATION_FLAG, true); DirectionInfo.i().setLocation(null); LocationUtils.setLocationLed(); LocationUtils.setBearingLed(); ScreenList.refreshListScreen(); }