Skip to content

Commit

Permalink
Fixed bug in UpdateChecker
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorncs committed Dec 1, 2013
1 parent 82b246b commit e16bd99
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions library/src/com/rampo/updatechecker/UpdateChecker.java
Original file line number Diff line number Diff line change
Expand Up @@ -378,13 +378,11 @@ protected Integer doInBackground(String... notused) {
BufferedReader reader = new BufferedReader(new InputStreamReader(is));
String line;
while ((line = reader.readLine()) != null) {
if (line.contains(HTML_TAGS_TO_GET_RIGHT_LINE)) { // Obtain HTML line contaning version available in Play Store
if (line.contains(HTML_TAGS_TO_GET_RIGHT_LINE)) { // Obtain HTML line containing version available in Play Store
String containingVersion = line.substring(line.lastIndexOf(HTML_TAGS_TO_GET_RIGHT_POSITION) + 28); // Get the String starting with version available + Other HTML tags
String[] removingUnusefulTags = containingVersion.split(HTML_TAGS_TO_REMOVE_USELESS_CONTENT); // Remove unseful HTML tags
versionDownloadable = removingUnusefulTags[0]; // Obtain version available
return VERSION_FOUND;
} else {
return ERROR;
}
}
} catch (IOException connectionError) {
Expand Down

0 comments on commit e16bd99

Please sign in to comment.