Extract constant
This commit is contained in:
parent
fca9925aa1
commit
91303d6ffe
1 changed files with 3 additions and 1 deletions
|
@ -26,6 +26,8 @@ import java.util.List;
|
|||
public class PointLocationLayer extends OsmandMapLayer implements ContextMenuLayer.IContextMenuProvider {
|
||||
private static final Log LOG = PlatformUtil.getLog(PointLocationLayer.class);
|
||||
|
||||
private static final int UPDATES_BEFORE_CHECK_LOCATION = 20;
|
||||
|
||||
protected final static int RADIUS = 7;
|
||||
|
||||
private Paint locationPaint;
|
||||
|
@ -147,7 +149,7 @@ public class PointLocationLayer extends OsmandMapLayer implements ContextMenuLay
|
|||
}
|
||||
|
||||
}
|
||||
if (updatesCounter == 20) {
|
||||
if (updatesCounter == UPDATES_BEFORE_CHECK_LOCATION) {
|
||||
updatesCounter = 0;
|
||||
} else {
|
||||
updatesCounter++;
|
||||
|
|
Loading…
Reference in a new issue