Skip to content

Commit b934638

Browse files
committed
Update MainActivity.java
1 parent c5a6b47 commit b934638

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/krytro/wordsaway/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private void setShortenUrl(String data, String originUrl) {
104104
JSONObject json = null;
105105
try {
106106
json = new JSONObject(data);
107-
currText = currText.replaceAll(originUrl, json.getString("shorturl"));
107+
currText = currText.replace(originUrl, json.getString("shorturl"));
108108
} catch (JSONException e) {
109109
e.printStackTrace();
110110
shortenUrlFailTodo();

0 commit comments

Comments
 (0)