Changed gps menu item icon to represent actual state of the gps (and not the action to be executed).

This commit is contained in:
Dennis Guse
2019-09-14 13:25:23 +02:00
parent 8853bb5408
commit 6ec78d77a9
2 changed files with 2 additions and 1 deletions
@@ -528,7 +528,7 @@ public class TrackListActivity extends AbstractListActivity implements ConfirmDe
startGpsMenuItem.setVisible(!isRecording);
if (!isRecording) {
startGpsMenuItem.setTitle(isGpsStarted ? R.string.menu_stop_gps : R.string.menu_start_gps);
startGpsMenuItem.setIcon(isGpsStarted ? R.drawable.ic_gps_off_24dp : R.drawable.ic_gps_fixed_24dp);
startGpsMenuItem.setIcon(isGpsStarted ? R.drawable.ic_gps_fixed_24dp : R.drawable.ic_gps_off_24dp);
}
}
if (aggregatedStatisticsMenuItem != null) {
+1
View File
@@ -19,6 +19,7 @@ limitations under the License.
android:actionViewClass="android.widget.SearchView"
android:showAsAction="ifRoom"
android:title="@string/menu_search" />
<!-- Icon and title is overwritten by TrackListActivity -->
<item
android:id="@+id/track_list_start_gps"
android:icon="@drawable/ic_gps_off_24dp"