Skip to content

Commit

Permalink
add copyright notice and some code remarks
Browse files Browse the repository at this point in the history
  • Loading branch information
constambeys committed Nov 10, 2019
1 parent 7216a72 commit 5d9e92e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
v0.7 (not released yet)
- issue #73 : add form to manually enter a location, thanks to Timotheos Constambeys
- translated to Ukrainian, thanks to Oleksiy
- translated to Turkish, thanks to Mesut Akcan

Expand Down
2 changes: 1 addition & 1 deletion res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<string name="location_longitude">Location longitude</string>
<string name="cancel">Cancel</string>
<string name="store_location">Store Location</string>
<string name="enter_location">Enter Location</string>
<string name="enter_location">Enter destination manually</string>
<string name="rename_destination">Rename destination</string>
<string name="store_location_disabled">Unable to store location if there is no current location</string>
<string name="enter_location_invalid_latitude">Latitude is outside the valid range [-90°,90°]</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* Main Activity
*
* Copyright (C) 2012-2019 Dieter Adriaenssens
* Copyright (C) 2019 Timotheos Constambeys
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -312,7 +313,7 @@ public final void enterLocation() {
= (EditText) dialogView.findViewById(R.id.location_longtitude);
// Set the layout for the dialog
builder.setView(dialogView)
.setTitle(R.string.store_location)
.setTitle(R.string.enter_location)
.setPositiveButton(R.string.store_location,
new DialogInterface.OnClickListener() {
public void onClick(final DialogInterface dialog,
Expand Down Expand Up @@ -529,7 +530,7 @@ public boolean onPrepareOptionsMenu(final Menu menu) {
if (isBound()) {
// enable store location button if a location is set
miStoreLocation.setEnabled(mService.getLocation() != null);
miEnterLocation.setEnabled(mService.getLocation() != null);
miEnterLocation.setEnabled(true);
// enable store location button if a location is set
miRenameDest.setEnabled(mService.getDestination() != null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* Location Service
*
* Copyright (C) 2012-2019 Dieter Adriaenssens
* Copyright (C) 2019 Timotheos Constambeys
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down

0 comments on commit 5d9e92e

Please sign in to comment.