Skip to content
Snippets Groups Projects
Commit bab3f76b authored by Lauren Bricker's avatar Lauren Bricker
Browse files

prompting for two more things

parent a57c953e
Branches master
No related tags found
No related merge requests found
......@@ -192,8 +192,9 @@ public class LocationActivity extends AbstractMainActivity {
} else {
// TODO: Handle the case where user did not turn on Location.
Toast.makeText(this,
getString(R.string.find_location_error), Toast.LENGTH_SHORT).show();
// Use a Toast to tell the user they should turn it on! (see strings.xml)
}
});
}
......@@ -270,6 +271,10 @@ public class LocationActivity extends AbstractMainActivity {
String output;
SwitchMaterial locSwitch = findViewById(R.id.location_on_off);
if (locSwitch.isChecked() && location != null) {
// TODO: Set the mCurrentLocation variable to hold this new location.
output = String.format(getResources().getString(R.string.location_output),
location.getProvider(), location.getLatitude(), location.getLongitude());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment