fix tracking icon behavior
This commit is contained in:
parent
748167678d
commit
20cf9a5dc0
2 changed files with 4 additions and 4 deletions
|
@ -9,8 +9,8 @@
|
||||||
1. All your modified/created strings are in the top of the file (to make easier find what's translated).
|
1. All your modified/created strings are in the top of the file (to make easier find what's translated).
|
||||||
PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy
|
PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy
|
||||||
-->
|
-->
|
||||||
<string name="live_monitoring_mode_off">Live tracking</string>
|
<string name="live_monitoring_mode_off">Start live tracking</string>
|
||||||
<string name="live_monitoring_mode_on">Stop Live tracking</string>
|
<string name="live_monitoring_mode_on">Stop live tracking</string>
|
||||||
<string name="layer_map_appearance">Configure screen…</string>
|
<string name="layer_map_appearance">Configure screen…</string>
|
||||||
<string name="show_lanes">Show lanes</string>
|
<string name="show_lanes">Show lanes</string>
|
||||||
<string name="avoid_unpaved">Avoid unpaved roads</string>
|
<string name="avoid_unpaved">Avoid unpaved roads</string>
|
||||||
|
|
|
@ -263,7 +263,7 @@ public class OsmandMonitoringPlugin extends OsmandPlugin implements LockInfoCont
|
||||||
final ActionItem bgServiceAction = new ActionItem();
|
final ActionItem bgServiceAction = new ActionItem();
|
||||||
final boolean off = !view.getSettings().SAVE_TRACK_TO_GPX.get();
|
final boolean off = !view.getSettings().SAVE_TRACK_TO_GPX.get();
|
||||||
bgServiceAction.setTitle(view.getResources().getString(off? R.string.monitoring_mode_off : R.string.monitoring_mode_on));
|
bgServiceAction.setTitle(view.getResources().getString(off? R.string.monitoring_mode_off : R.string.monitoring_mode_on));
|
||||||
bgServiceAction.setIcon(view.getResources().getDrawable(off ? R.drawable.monitoring_rec_big : R.drawable.monitoring_rec_inactive));
|
bgServiceAction.setIcon(view.getResources().getDrawable(off ? R.drawable.monitoring_rec_inactive : R.drawable.monitoring_rec_big));
|
||||||
bgServiceAction.setOnClickListener(new View.OnClickListener() {
|
bgServiceAction.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
@ -290,7 +290,7 @@ public class OsmandMonitoringPlugin extends OsmandPlugin implements LockInfoCont
|
||||||
final ActionItem liveAction = new ActionItem();
|
final ActionItem liveAction = new ActionItem();
|
||||||
final boolean liveoff = !view.getSettings().LIVE_MONITORING.get();
|
final boolean liveoff = !view.getSettings().LIVE_MONITORING.get();
|
||||||
liveAction.setTitle(view.getResources().getString(liveoff? R.string.live_monitoring_mode_off : R.string.live_monitoring_mode_on));
|
liveAction.setTitle(view.getResources().getString(liveoff? R.string.live_monitoring_mode_off : R.string.live_monitoring_mode_on));
|
||||||
liveAction.setIcon(view.getResources().getDrawable(liveoff?R.drawable.monitoring_rec_big:R.drawable.monitoring_rec_inactive));
|
liveAction.setIcon(view.getResources().getDrawable(liveoff? R.drawable.monitoring_rec_inactive : R.drawable.monitoring_rec_big));
|
||||||
liveAction.setOnClickListener(new View.OnClickListener() {
|
liveAction.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
|
Loading…
Reference in a new issue