Skip to content

Commit

Permalink
1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sqayner committed Sep 9, 2023
1 parent 5fe9b79 commit 0c23a39
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ protected void onCreate(Bundle savedInstanceState) {

text = findViewById(R.id.textView);

EarthquakeAPI.initialize().setSource(Source.KANDILLI).setEarthquakeAPIListener(new EarthquakeAPIListener() {
EarthquakeAPI.initialize().setSource(Source.USGS).setEarthquakeAPIListener(new EarthquakeAPIListener() {
@Override
public void onLoaded(ArrayList<Earthquake> earthquakes) {
StringBuilder output = new StringBuilder();
Expand Down
4 changes: 2 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = 'com.github.sqayner'
version = '1.1.1'
version = '1.1.2'

android {
namespace 'tr.com.erenkaynar.library.earthquake'
Expand Down Expand Up @@ -54,7 +54,7 @@ afterEvaluate {
from components.release
groupId = 'com.github.sqayner'
artifactId = 'earthquake-library-java'
version = '1.1.1'
version = '1.1.2'
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private Earthquake parseLine(String line) {
earthquake.setCoordinates(latLong);

earthquake.setMagnitude(Double.parseDouble(values[10]));
earthquake.setLocation(values[12]);
earthquake.setLocation(values.length == 13 ? values[12] : "Belirtilmemiş");

earthquake.setDatetime(Instant.parse(values[1] + (values[1].contains("Z") ? "" : "Z")));

Expand Down

0 comments on commit 0c23a39

Please sign in to comment.